aboutsummaryrefslogtreecommitdiffstats
path: root/railties
diff options
context:
space:
mode:
authorRafael Mendonça França <rafael.franca@plataformatec.com.br>2015-02-19 09:29:09 -0200
committerRafael Mendonça França <rafael.franca@plataformatec.com.br>2015-02-19 09:29:09 -0200
commit6ad28a795bb0085fd790a52a53f73a2d51fc85f0 (patch)
tree587db217ad330b62d38f3009f3ff4375935919ab /railties
parent4f56a1df5453cee3f2869a72dc8b944e66db3246 (diff)
downloadrails-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.rb2
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