Class: SimpleCataloger::Category
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- SimpleCataloger::Category
- Defined in:
- lib/dircat/cat_on_sqlite/model/category.rb
Instance Method Summary collapse
-
#items ⇒ Object
tried following but it didn’t work has_many :items, :through => :tags.
Instance Method Details
#items ⇒ Object
tried following but it didn’t work has_many :items, :through => :tags
11 12 13 |
# File 'lib/dircat/cat_on_sqlite/model/category.rb', line 11 def items .collect { |t| t.items }.flatten end |