Browse files

no reason to make these defaulted, we always pass values in

  • Loading branch information...
1 parent 37ca5b0 commit 0b9b132e3293c56fb37a612c51a883df26a2b6c7 @tenderlove tenderlove committed May 13, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 activesupport/lib/active_support/callbacks.rb
View
2 activesupport/lib/active_support/callbacks.rb
@@ -439,7 +439,7 @@ def __callback_runner_name(kind)
# 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

0 comments on commit 0b9b132

Please sign in to comment.