Sha256: e715c93d1f3c2c43a0e5f80d348d4c4421de7207b69aca504a6121995a94728e

Contents?: true

Size: 215 Bytes

Versions: 194

Compression:

Stored size: 215 Bytes

Contents

class Tag < ActiveRecord::Base
  has_many :taggings
  has_many :taggables, :through => :taggings
  has_one  :tagging

  has_many :tagged_posts, :through => :taggings, :source => :taggable, :source_type => 'Post'
end

Version data entries

194 entries across 191 versions & 27 rubygems

Version Path
relevance-castronaut-0.7.5 vendor/activerecord/test/models/tag.rb
activerecord-nuodb-adapter-2.0.3 test/models/tag.rb
activerecord-nuodb-adapter-2.0 test/models/tag.rb
activerecord-nuodb-adapter-1.1 test/models/tag.rb
activerecord-nuodb-adapter-1.0.4 test/models/tag.rb
activerecord-2.3.18 test/models/tag.rb
activerecord_csi-2.3.5.p8 test/models/tag.rb
activerecord-2.3.17 test/models/tag.rb
activerecord_csi-2.3.5.p7 test/models/tag.rb
activerecord_csi-2.3.5.p6 test/models/tag.rb
activerecord-2.3.16 test/models/tag.rb
activerecord-2.3.15 test/models/tag.rb
radiant-1.0.0 ruby-debug/ruby/1.8/gems/activerecord-2.3.14/test/models/tag.rb
vanity-1.7.1 vendor/ruby/1.9.1/gems/activerecord-2.3.12/test/models/tag.rb
activerecord-2.3.14 test/models/tag.rb
kajam-1.0.3.rc2 vendor/rails/activerecord/test/models/tag.rb
activerecord-2.3.12 test/models/tag.rb
radiant-1.0.0.rc2 vendor/rails/activerecord/test/models/tag.rb
radiant-1.0.0.rc1 vendor/rails/activerecord/test/models/tag.rb
webroar-0.5.0 src/admin_panel/vendor/rails/activerecord/test/models/tag.rb