X-Git-Url: https://git.njae.me.uk/?a=blobdiff_plain;f=vendor%2Frails%2Factiverecord%2Ftest%2Fmodels%2Ftag.rb;fp=vendor%2Frails%2Factiverecord%2Ftest%2Fmodels%2Ftag.rb;h=a581b381e8cebd6242f5087c211145bf5aeb5a48;hb=d115f2e23823271635bad69229a42cd8ac68debe;hp=0000000000000000000000000000000000000000;hpb=37cb670bf3ddde90b214e591f100ed4446469484;p=depot.git diff --git a/vendor/rails/activerecord/test/models/tag.rb b/vendor/rails/activerecord/test/models/tag.rb new file mode 100644 index 0000000..a581b38 --- /dev/null +++ b/vendor/rails/activerecord/test/models/tag.rb @@ -0,0 +1,7 @@ +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 \ No newline at end of file