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
28 29 30 |
# File 'app/models/locomotive/activity.rb', line 28 def action self.key.split('.').last end |
#domain ⇒ Object
methods ##
24 25 26 |
# File 'app/models/locomotive/activity.rb', line 24 def domain self.key.split('.').first end |
#key ⇒ Object
validations ##
7 |
# File 'app/models/locomotive/activity.rb', line 7 field :key |
#site ⇒ Object
associations ##
12 |
# File 'app/models/locomotive/activity.rb', line 12 belongs_to :site, class_name: 'Locomotive::Site', validate: false, autosave: false |