Sha256: 353e5d7240fc7fa0716e198445cfe16743e46d7f8d6e97ce6628af16f79fc82f

Contents?: true

Size: 224 Bytes

Versions: 2

Compression:

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

2 entries across 2 versions & 1 rubygems

Version Path
ibm_db-3.0.5-x86-mingw32 test/models/tag.rb
ibm_db-3.0.5 test/models/tag.rb