Class: OrgActivity
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- OrgActivity
- Includes:
- ActionView::Helpers::AutoTagHelper::FormInfo, ActiveRecord::Mlang
- Defined in:
- app/models/org_activity.rb
Instance Method Summary collapse
Instance Method Details
#<=>(other) ⇒ Object
8 9 10 |
# File 'app/models/org_activity.rb', line 8 def <=>(other) self.position <=> (other.try(:position) || self.position + 1) end |
#__display__ ⇒ Object
12 13 14 |
# File 'app/models/org_activity.rb', line 12 def __display__ self.text.label end |