From 7edb204598c3a2382a870ecd7018fc1a3a804138 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafael=20Mendon=C3=A7a=20Fran=C3=A7a?= Date: Thu, 10 Apr 2014 15:43:51 -0300 Subject: No need to call send --- activerecord/lib/active_record/fixtures.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'activerecord/lib/active_record') diff --git a/activerecord/lib/active_record/fixtures.rb b/activerecord/lib/active_record/fixtures.rb index 60ece6bd13..47d32fae05 100644 --- a/activerecord/lib/active_record/fixtures.rb +++ b/activerecord/lib/active_record/fixtures.rb @@ -661,7 +661,7 @@ module ActiveRecord row[association.foreign_type] = $1 end - fk_type = association.send(:active_record).columns_hash[association.foreign_key].type + fk_type = association.active_record.columns_hash[association.foreign_key].type row[fk_name] = ActiveRecord::FixtureSet.identify(value, fk_type) end when :has_many -- cgit v1.2.3