diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2010-09-09 10:33:22 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2010-09-09 10:33:22 -0700 |
commit | be07d7b1073d841cd39896e5e8bcb5a2333a1d09 (patch) | |
tree | fc7e650164ed3000116e62ec81653840da439569 | |
parent | a505c82d2f4642a16b08a3cbead0a12a22508eba (diff) | |
download | rails-be07d7b1073d841cd39896e5e8bcb5a2333a1d09.tar.gz rails-be07d7b1073d841cd39896e5e8bcb5a2333a1d09.tar.bz2 rails-be07d7b1073d841cd39896e5e8bcb5a2333a1d09.zip |
creating a new array is required. who knew? :-(
-rw-r--r-- | activerecord/lib/active_record/relation/query_methods.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/relation/query_methods.rb b/activerecord/lib/active_record/relation/query_methods.rb index 5179fa2188..de57725af2 100644 --- a/activerecord/lib/active_record/relation/query_methods.rb +++ b/activerecord/lib/active_record/relation/query_methods.rb @@ -277,7 +277,7 @@ module ActiveRecord def apply_modules(modules) unless modules.empty? - @extensions.concat modules + @extensions += modules modules.each {|extension| extend(extension) } end end |