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
relevance-castronaut-0.7.5 vendor/activerecord/test/models/tagging.rb
activerecord-2.3.18 test/models/tagging.rb
activerecord_csi-2.3.5.p8 test/models/tagging.rb
activerecord-2.3.17 test/models/tagging.rb
activerecord_csi-2.3.5.p7 test/models/tagging.rb
activerecord_csi-2.3.5.p6 test/models/tagging.rb
activerecord-2.3.16 test/models/tagging.rb
activerecord-2.3.15 test/models/tagging.rb
radiant-1.0.0 ruby-debug/ruby/1.8/gems/activerecord-2.3.14/test/models/tagging.rb
vanity-1.7.1 vendor/ruby/1.9.1/gems/activerecord-2.3.12/test/models/tagging.rb
activerecord-2.3.14 test/models/tagging.rb
kajam-1.0.3.rc2 vendor/rails/activerecord/test/models/tagging.rb
activerecord-2.3.12 test/models/tagging.rb
radiant-1.0.0.rc2 vendor/rails/activerecord/test/models/tagging.rb
radiant-1.0.0.rc1 vendor/rails/activerecord/test/models/tagging.rb
webroar-0.5.0 src/admin_panel/vendor/rails/activerecord/test/models/tagging.rb
activerecord-2.3.11 test/models/tagging.rb
radiantcms-couchrest_model-0.2.4 vendor/rails/activerecord/test/models/tagging.rb
ensured_schema-0.1.6 test/models/tagging.rb
ensured_schema-0.1.5 test/models/tagging.rb