Class: Category
- Defined in:
- app/models/category.rb
Instance Method Summary collapse
Instance Method Details
#all_contents ⇒ Object
23 24 25 |
# File 'app/models/category.rb', line 23 def all_contents Content.by_category(self) end |
#owner ⇒ Object
19 20 21 |
# File 'app/models/category.rb', line 19 def owner section end |
#owners ⇒ Object
15 16 17 |
# File 'app/models/category.rb', line 15 def owners owner.owners << owner end |