aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib
diff options
context:
space:
mode:
authorJoshua Peek <josh@joshpeek.com>2008-08-21 00:51:06 -0500
committerJoshua Peek <josh@joshpeek.com>2008-08-21 00:51:06 -0500
commit6be8251ec86b74b92e7bd922fafe9224281d2d26 (patch)
treee8a87dd3524b3d80b381fc7dbb273a41c890dba2 /actionpack/lib
parentf388725bd61d8ae246c0c8e42eaec1a2be4620ac (diff)
downloadrails-6be8251ec86b74b92e7bd922fafe9224281d2d26.tar.gz
rails-6be8251ec86b74b92e7bd922fafe9224281d2d26.tar.bz2
rails-6be8251ec86b74b92e7bd922fafe9224281d2d26.zip
Simplified and renamed CallbackChain union method to replace_or_append!
Diffstat (limited to 'actionpack/lib')
-rw-r--r--actionpack/lib/action_controller/dispatcher.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_controller/dispatcher.rb b/actionpack/lib/action_controller/dispatcher.rb
index 7e46f572fe..bdae5f9d86 100644
--- a/actionpack/lib/action_controller/dispatcher.rb
+++ b/actionpack/lib/action_controller/dispatcher.rb
@@ -44,7 +44,7 @@ module ActionController
def to_prepare(identifier = nil, &block)
@prepare_dispatch_callbacks ||= ActiveSupport::Callbacks::CallbackChain.new
callback = ActiveSupport::Callbacks::Callback.new(:prepare_dispatch, block, :identifier => identifier)
- @prepare_dispatch_callbacks | callback
+ @prepare_dispatch_callbacks.replace_or_append!(callback)
end
# If the block raises, send status code as a last-ditch response.