Class: Category
- Inherits:
-
Common::Base
- Object
- Common::Base
- Category
- Defined in:
- app/models/category.rb
Overview
Category model
Instance Attribute Summary
Attributes inherited from Common::Base
Instance Method Summary collapse
-
#<=>(other) ⇒ Object
Categories are simply an array and have no id.
- #category_id ⇒ Object
Methods inherited from Common::Base
#changed, #changed?, #changes, default_sort, filterable_attributes, #initialize, max_per_page, per_page, sortable_attributes
Constructor Details
This class inherits a constructor from Common::Base
Instance Method Details
#<=>(other) ⇒ Object
Categories are simply an array and have no id.
14 15 16 |
# File 'app/models/category.rb', line 14 def <=>(other) category_id <=> other.category_id end |
#category_id ⇒ Object
7 8 9 |
# File 'app/models/category.rb', line 7 def category_id 0 end |