aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2013-10-07 15:03:08 -0700
committerAaron Patterson <aaron.patterson@gmail.com>2013-10-07 15:03:08 -0700
commit77e5c1262c7ef987cc0cdf3d246448dabc0b6e80 (patch)
tree584a6a905c0e358b54eea267a00b0a35a0db8e20 /activerecord
parent3270bea4f368c67cecad40be9fa5fa740b8def4f (diff)
downloadrails-77e5c1262c7ef987cc0cdf3d246448dabc0b6e80.tar.gz
rails-77e5c1262c7ef987cc0cdf3d246448dabc0b6e80.tar.bz2
rails-77e5c1262c7ef987cc0cdf3d246448dabc0b6e80.zip
remove more dead code
We control the inputs to `construct`, so the wrong type shouldn't be passed in ever.
Diffstat (limited to 'activerecord')
-rw-r--r--activerecord/lib/active_record/associations/join_dependency.rb2
1 files changed, 0 insertions, 2 deletions
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