Module: Sipity::Models

Defined in:
app/models/sipity/models.rb,
app/models/sipity/models/sip.rb,
app/models/sipity/models/group.rb,
app/models/sipity/models/event_log.rb,
app/models/sipity/models/permission.rb,
app/models/sipity/models/collaborator.rb,
app/models/sipity/models/group_membership.rb,
app/models/sipity/models/account_placeholder.rb,
app/models/sipity/models/additional_attribute.rb,
app/models/sipity/models/doi_creation_request.rb

Overview

Note:

Do *NOT* put behavior in the Models. Treat the models as data structures.

Models are the persisted objects. They are the closest representation of the persistence layer tables/documents.

Defined Under Namespace

Classes: AccountPlaceholder, AdditionalAttribute, Collaborator, DoiCreationRequest, EventLog, Group, GroupMembership, Permission, Sip

Class Method Summary collapse

Class Method Details

.use_relative_model_naming?Boolean

Because I want greater control of the names. Changes the polymorphic pathing to something a bit less chatty (i.e. from sipity_models_sip_path to sip_path).


13
14
15
# File 'app/models/sipity/models.rb', line 13

def self.use_relative_model_naming?
  true
end