diff options
author | Rafael Mendonça França <rafael.franca@plataformatec.com.br> | 2015-02-19 09:29:09 -0200 |
---|---|---|
committer | Rafael Mendonça França <rafael.franca@plataformatec.com.br> | 2015-02-19 09:29:09 -0200 |
commit | 6ad28a795bb0085fd790a52a53f73a2d51fc85f0 (patch) | |
tree | 587db217ad330b62d38f3009f3ff4375935919ab /railties | |
parent | 4f56a1df5453cee3f2869a72dc8b944e66db3246 (diff) | |
download | rails-6ad28a795bb0085fd790a52a53f73a2d51fc85f0.tar.gz rails-6ad28a795bb0085fd790a52a53f73a2d51fc85f0.tar.bz2 rails-6ad28a795bb0085fd790a52a53f73a2d51fc85f0.zip |
Do not mutate the operations array
Diffstat (limited to 'railties')
-rw-r--r-- | railties/lib/rails/configuration.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/lib/rails/configuration.rb b/railties/lib/rails/configuration.rb index e1ee214dc9..76364cea8f 100644 --- a/railties/lib/rails/configuration.rb +++ b/railties/lib/rails/configuration.rb @@ -65,7 +65,7 @@ module Rails end def merge_into(other) #:nodoc: - @operations.concat(@delete_operations).each do |operation, args, block| + (@operations + @delete_operations).each do |operation, args, block| other.send(operation, *args, &block) end |