Class: SimpleCataloger::Category

Inherits:
ActiveRecord::Base
  • Object
show all
Defined in:
lib/dircat/cat_on_sqlite/model/category.rb

Instance Method Summary collapse

Instance Method Details

#itemsObject

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
  tags.collect { |t| t.items }.flatten
end