Class: Category
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- Category
- Defined in:
- app/models/category.rb
Instance Method Summary collapse
Instance Method Details
#children_by_position ⇒ Object
7 8 9 |
# File 'app/models/category.rb', line 7 def children_by_position Category.scoped :conditions => { parent_column_name => self }, :order => "position" end |