diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2011-01-14 16:50:26 -0800 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2011-01-14 16:50:26 -0800 |
commit | f5d2cb9cac41c1655ad915418bb968011300688a (patch) | |
tree | 803923748a5067cd606dd4e9da83e8b5579345a7 | |
parent | 17687e4f969af363edf2854dd0c49914098dfda4 (diff) | |
download | rails-f5d2cb9cac41c1655ad915418bb968011300688a.tar.gz rails-f5d2cb9cac41c1655ad915418bb968011300688a.tar.bz2 rails-f5d2cb9cac41c1655ad915418bb968011300688a.zip |
we should use [] instead of Array.new
-rw-r--r-- | activerecord/lib/active_record/associations/association_collection.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/associations/association_collection.rb b/activerecord/lib/active_record/associations/association_collection.rb index 9490f5401c..c5c505342e 100644 --- a/activerecord/lib/active_record/associations/association_collection.rb +++ b/activerecord/lib/active_record/associations/association_collection.rb @@ -401,7 +401,7 @@ module ActiveRecord end def reset_target! - @target = Array.new + @target = [] end def reset_scopes_cache! |