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
radiant-0.8.1 vendor/rails/activerecord/test/models/tag.rb
activerecord-2.3.4 test/models/tag.rb
activerecord-2.3.3 test/models/tag.rb
activerecord-1.15.4 test/fixtures/tag.rb
activerecord-1.15.3 test/fixtures/tag.rb
activerecord-1.15.5 test/fixtures/tag.rb
activerecord-1.15.6 test/fixtures/tag.rb
activerecord-2.0.4 test/fixtures/tag.rb
activerecord-2.0.2 test/fixtures/tag.rb
activerecord-2.0.0 test/fixtures/tag.rb
activerecord-2.0.1 test/fixtures/tag.rb
activerecord-2.0.5 test/fixtures/tag.rb
activerecord-2.3.2 test/models/tag.rb
activerecord-2.1.0 test/models/tag.rb
activerecord-2.1.2 test/models/tag.rb
activerecord-2.1.1 test/models/tag.rb
activerecord-2.2.2 test/models/tag.rb
activerecord_authorails-1.0.0 test/fixtures/tag.rb
antfarm-0.3.0 rails/vendor/rails/activerecord/test/models/tag.rb
antfarm-0.4.0 rails/vendor/rails/activerecord/test/models/tag.rb