Sha256: adc4879e2bd31a6f6826738ca8f3956f859dda59d3e8ae46675961277cbb33fd

Contents?: true

Size: 217 Bytes

Versions: 10

Compression:

Stored size: 217 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

10 entries across 10 versions & 2 rubygems

Version Path
ibm_db-3.0.4-x86-mingw32 test/models/tag.rb
ibm_db-3.0.4 test/models/tag.rb
ibm_db-3.0.3-x86-mingw32 test/models/tag.rb
ibm_db-3.0.3 test/models/tag.rb
ibm_db-3.0.2-x86-mingw32 test/models/tag.rb
ibm_db-3.0.2 test/models/tag.rb
activejob-lock-0.0.2 rails/activerecord/test/models/tag.rb
ibm_db-3.0.1 test/models/tag.rb
ibm_db-3.0.1-x86-mingw32 test/models/tag.rb
activejob-lock-0.0.1 rails/activerecord/test/models/tag.rb