1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Removed unused associations

This commit is contained in:
Andrew White 2013-04-24 15:01:13 +01:00
parent 2d211c459d
commit 07e489c9a2

View file

@ -179,7 +179,6 @@ class TimestampTest < ActiveRecord::TestCase
def test_touching_a_record_touches_polymorphic_record
klass = Class.new(ActiveRecord::Base) do
def self.name; 'Toy'; end
belongs_to :pet, :touch => true
end
wheel_klass = Class.new(ActiveRecord::Base) do
@ -228,7 +227,6 @@ class TimestampTest < ActiveRecord::TestCase
def test_changing_parent_of_a_record_touches_both_new_and_old_polymorphic_parent_record
klass = Class.new(ActiveRecord::Base) do
def self.name; 'Toy'; end
belongs_to :pet, touch: true
end
wheel_klass = Class.new(ActiveRecord::Base) do