From 0b9b132e3293c56fb37a612c51a883df26a2b6c7 Mon Sep 17 00:00:00 2001 From: Aaron Patterson Date: Mon, 13 May 2013 14:02:39 -0700 Subject: no reason to make these defaulted, we always pass values in --- activesupport/lib/active_support/callbacks.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/activesupport/lib/active_support/callbacks.rb b/activesupport/lib/active_support/callbacks.rb index a151aa03b5..92b57ee1ce 100644 --- a/activesupport/lib/active_support/callbacks.rb +++ b/activesupport/lib/active_support/callbacks.rb @@ -439,7 +439,7 @@ module ActiveSupport # This is used internally to append, prepend and skip callbacks to the # CallbackChain. - def __update_callbacks(name, filters = [], block = nil) #:nodoc: + def __update_callbacks(name, filters, block) #:nodoc: type = CALLBACK_FILTER_TYPES.include?(filters.first) ? filters.shift : :before options = filters.last.is_a?(Hash) ? filters.pop : {} filters.unshift(block) if block -- cgit v1.2.3