diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2013-05-21 14:19:28 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2013-05-21 14:19:28 -0700 |
commit | d440fa07dc9b20880d0f22071319d8a9babe4e6b (patch) | |
tree | 1d5ba496b4a60c4da36bf46b852b00819aae655d /activerecord/lib/active_record/associations | |
parent | ac70ec64138765ddd2a7c5e0130243e6df98cf2d (diff) | |
download | rails-d440fa07dc9b20880d0f22071319d8a9babe4e6b.tar.gz rails-d440fa07dc9b20880d0f22071319d8a9babe4e6b.tar.bz2 rails-d440fa07dc9b20880d0f22071319d8a9babe4e6b.zip |
use drop rather than calculate the array length
Diffstat (limited to 'activerecord/lib/active_record/associations')
-rw-r--r-- | activerecord/lib/active_record/associations/join_dependency.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/associations/join_dependency.rb b/activerecord/lib/active_record/associations/join_dependency.rb index 5b2f2d1902..b73466d77b 100644 --- a/activerecord/lib/active_record/associations/join_dependency.rb +++ b/activerecord/lib/active_record/associations/join_dependency.rb @@ -48,7 +48,7 @@ module ActiveRecord end def join_associations - join_parts.last(join_parts.length - 1) + join_parts.drop 1 end def join_base |