Class: Locomotive::Activity
- Inherits:
-
Object
- Object
- Locomotive::Activity
- Includes:
- Mongoid::Document
- Defined in:
- app/models/locomotive/activity.rb
Instance Method Summary collapse
- #action ⇒ Object
-
#domain ⇒ Object
methods ##.
-
#key ⇒ Object
validations ##.
-
#site ⇒ Object
associations ##.
Instance Method Details
#action ⇒ Object
27 28 29 |
# File 'app/models/locomotive/activity.rb', line 27 def action self.key.split('.').last end |
#domain ⇒ Object
methods ##
23 24 25 |
# File 'app/models/locomotive/activity.rb', line 23 def domain self.key.split('.').first end |
#key ⇒ Object
validations ##
7 |
# File 'app/models/locomotive/activity.rb', line 7 field :key |
#site ⇒ Object
associations ##
11 |
# File 'app/models/locomotive/activity.rb', line 11 belongs_to :site, class_name: 'Locomotive::Site', validate: false, autosave: false |