Sha256: 4ac79952c1ae885c67b163b72b1fdf35a1697f7ee87a3eb81d00ac119283a5a0

Contents?: true

Size: 402 Bytes

Versions: 122

Compression:

Stored size: 402 Bytes

Contents

# test that attr_readonly isn't called on the :taggable polymorphic association
module Taggable
end

class Tagging < ActiveRecord::Base
  belongs_to :tag, :include => :tagging
  belongs_to :super_tag,   :class_name => 'Tag', :foreign_key => 'super_tag_id'
  belongs_to :invalid_tag, :class_name => 'Tag', :foreign_key => 'tag_id'
  belongs_to :taggable, :polymorphic => true, :counter_cache => true
end

Version data entries

122 entries across 119 versions & 23 rubygems

Version Path
3mix-castronaut-0.5.0.2 vendor/activerecord/test/models/tagging.rb
ferblape-query_memcached-2.2.2 test/testing_app/app/models/tagging.rb
masover-castronaut-0.4.4.4 vendor/activerecord/test/models/tagging.rb
masover-castronaut-0.4.4.5 vendor/activerecord/test/models/tagging.rb
masover-castronaut-0.5.0.1 vendor/activerecord/test/models/tagging.rb
p8-castronaut-0.6.1.1 vendor/activerecord/test/models/tagging.rb
relevance-castronaut-0.4.1 vendor/activerecord/test/models/tagging.rb
relevance-castronaut-0.4.2 vendor/activerecord/test/models/tagging.rb
relevance-castronaut-0.4.3 vendor/activerecord/test/models/tagging.rb
relevance-castronaut-0.4.4 vendor/activerecord/test/models/tagging.rb
relevance-castronaut-0.4.5 vendor/activerecord/test/models/tagging.rb
relevance-castronaut-0.4.6 vendor/activerecord/test/models/tagging.rb
relevance-castronaut-0.5.0 vendor/activerecord/test/models/tagging.rb
relevance-castronaut-0.5.1 vendor/activerecord/test/models/tagging.rb
relevance-castronaut-0.5.2 vendor/activerecord/test/models/tagging.rb
relevance-castronaut-0.5.3 vendor/activerecord/test/models/tagging.rb
relevance-castronaut-0.5.4 vendor/activerecord/test/models/tagging.rb
relevance-castronaut-0.6.0 vendor/activerecord/test/models/tagging.rb
relevance-castronaut-0.6.1 vendor/activerecord/test/models/tagging.rb
relevance-castronaut-0.7.4 vendor/activerecord/test/models/tagging.rb