Class: Category

Inherits:
ActiveRecord::Base
  • Object
show all
Defined in:
app/models/category.rb

Instance Method Summary collapse

Instance Method Details

#all_contentsObject



23
24
25
# File 'app/models/category.rb', line 23

def all_contents
  Content.by_category(self)
end

#ownerObject



19
20
21
# File 'app/models/category.rb', line 19

def owner
  section
end

#ownersObject



15
16
17
# File 'app/models/category.rb', line 15

def owners
  owner.owners << owner
end