From b04051d4e0c8066ec79cd4978606e4728dfa6ffa Mon Sep 17 00:00:00 2001 From: Dmitry Vorotilin Date: Fri, 1 Mar 2013 02:32:38 +0400 Subject: Fix ActiveRecord `subclass_from_attrs` when eager_load is false. It cannot find subclass because all classes are loaded automatically when it needs. --- activerecord/test/models/autoloadable/extra_firm.rb | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 activerecord/test/models/autoloadable/extra_firm.rb (limited to 'activerecord/test/models') diff --git a/activerecord/test/models/autoloadable/extra_firm.rb b/activerecord/test/models/autoloadable/extra_firm.rb new file mode 100644 index 0000000000..5578ba0d9b --- /dev/null +++ b/activerecord/test/models/autoloadable/extra_firm.rb @@ -0,0 +1,2 @@ +class ExtraFirm < Company +end -- cgit v1.2.3