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=437aa336c44c74a30aeea16a06743c32747ed661;hp=0000000000000000000000000000000000000000;hpb=97a0772b06264134cfe38e7494f9427efe0840a0;p=feedcatcher.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