Class: Category

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

Instance Method Summary collapse

Methods included from HasPermalink

included

Instance Method Details

#all_contentsObject



28
29
30
# File 'app/models/category.rb', line 28

def all_contents
  Content.by_category(self)
end

#ownerObject



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

def owner
  section
end

#ownersObject



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

def owners
  owner.owners << owner
end