Sha256: 84a2cab30ef5cfe1ad3d3b0f7d5670a54434a7f3257a0e8d5ee55ed38be3151d

Contents?: true

Size: 229 Bytes

Versions: 14

Compression:

Stored size: 229 Bytes

Contents

class EatersFoodstuff < ActiveRecord::Base
  belongs_to :foodstuff, :class_name => "Petfood", :foreign_key => "foodstuff_id"
  belongs_to :eater, :polymorphic => true
  
  before_save { |record| record.some_attribute = 3 }
end

Version data entries

14 entries across 14 versions & 3 rubygems

Version Path
radiant-tags-extension-1.6.10 vendor/plugins/has_many_polymorphs/test/models/eaters_foodstuff.rb
johnsbrn-has_many_polymorphs-2.13.4 test/models/eaters_foodstuff.rb
radiant-tags-extension-1.6.9 vendor/plugins/has_many_polymorphs/test/models/eaters_foodstuff.rb
radiant-tags-extension-1.6.8 vendor/plugins/has_many_polymorphs/test/models/eaters_foodstuff.rb
radiant-tags-extension-1.6.7 vendor/plugins/has_many_polymorphs/test/models/eaters_foodstuff.rb
radiant-tags-extension-1.6.6 vendor/plugins/has_many_polymorphs/test/models/eaters_foodstuff.rb
radiant-tags-extension-1.6.5 vendor/plugins/has_many_polymorphs/test/models/eaters_foodstuff.rb
radiant-tags-extension-1.6.4 vendor/plugins/has_many_polymorphs/test/models/eaters_foodstuff.rb
radiant-tags-extension-1.6.3 vendor/plugins/has_many_polymorphs/test/models/eaters_foodstuff.rb
radiant-tags-extension-1.6.2 vendor/plugins/has_many_polymorphs/test/models/eaters_foodstuff.rb
radiant-tags-extension-1.6.1 vendor/plugins/has_many_polymorphs/test/models/eaters_foodstuff.rb
radiant-tags-extension-1.6.0 vendor/plugins/has_many_polymorphs/test/models/eaters_foodstuff.rb
radiant-tags-extension-1.5.1 vendor/plugins/has_many_polymorphs/test/models/eaters_foodstuff.rb
has_many_polymorphs-2.2 test/models/eaters_foodstuff.rb