diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2010-09-22 08:58:04 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2010-09-22 09:01:11 -0700 |
commit | fe8a307088fb0670bb26d7c18b9b9fe5ad7d8a56 (patch) | |
tree | aa3b84e9121d8348ba02323f960076b793486962 /activerecord | |
parent | b73d5e81ec010cfe189b3ecb4ed1628b4cf3a14e (diff) | |
download | rails-fe8a307088fb0670bb26d7c18b9b9fe5ad7d8a56.tar.gz rails-fe8a307088fb0670bb26d7c18b9b9fe5ad7d8a56.tar.bz2 rails-fe8a307088fb0670bb26d7c18b9b9fe5ad7d8a56.zip |
avoid creating a range object
Diffstat (limited to 'activerecord')
-rw-r--r-- | activerecord/lib/active_record/associations.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/associations.rb b/activerecord/lib/active_record/associations.rb index e8a5364cd7..72d6ac756f 100644 --- a/activerecord/lib/active_record/associations.rb +++ b/activerecord/lib/active_record/associations.rb @@ -1855,7 +1855,7 @@ module ActiveRecord end def join_associations - @joins[1..-1].to_a + @joins.last(@joins.length - 1) end def join_base |