From 77e5c1262c7ef987cc0cdf3d246448dabc0b6e80 Mon Sep 17 00:00:00 2001 From: Aaron Patterson Date: Mon, 7 Oct 2013 15:03:08 -0700 Subject: remove more dead code We control the inputs to `construct`, so the wrong type shouldn't be passed in ever. --- activerecord/lib/active_record/associations/join_dependency.rb | 2 -- 1 file changed, 2 deletions(-) (limited to 'activerecord') diff --git a/activerecord/lib/active_record/associations/join_dependency.rb b/activerecord/lib/active_record/associations/join_dependency.rb index a91a928a01..8b0e469a98 100644 --- a/activerecord/lib/active_record/associations/join_dependency.rb +++ b/activerecord/lib/active_record/associations/join_dependency.rb @@ -199,8 +199,6 @@ module ActiveRecord association = construct(parent, association_name, join_parts, row) construct(association, assoc, join_parts, row) if association end - else - raise ConfigurationError, associations.inspect end end -- cgit v1.2.3