Sha256: e1d552bd1349f8fc506be3e21eefce7c3fb39fb102d0d01a1d8922c17cb637a6

Contents?: true

Size: 284 Bytes

Versions: 6

Compression:

Stored size: 284 Bytes

Contents

module Wafflemix
  class Category < ActiveRecord::Base
    attr_accessible :ancestry, :categorical_id, :categorical_type, :name, :position

    has_many :categoricals
    has_many :posts, :through => :categoricals, :source => :categorical, :source_type => 'Wafflemix::Post'
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
wafflemix-0.0.6 app/models/wafflemix/category.rb
wafflemix-0.0.5 app/models/wafflemix/category.rb
wafflemix-0.0.4 app/models/wafflemix/category.rb
wafflemix-0.0.3 app/models/wafflemix/category.rb
wafflemix-0.0.2 app/models/wafflemix/category.rb
wafflemix-0.0.1 app/models/wafflemix/category.rb