diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2013-05-13 14:02:39 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2013-05-13 14:02:39 -0700 |
commit | 0b9b132e3293c56fb37a612c51a883df26a2b6c7 (patch) | |
tree | 31ba64924fbdb5b4e494b41fd65b392681a5b3ab /activesupport/lib | |
parent | 37ca5b09662797928a4f74878595a4e577c5aedd (diff) | |
download | rails-0b9b132e3293c56fb37a612c51a883df26a2b6c7.tar.gz rails-0b9b132e3293c56fb37a612c51a883df26a2b6c7.tar.bz2 rails-0b9b132e3293c56fb37a612c51a883df26a2b6c7.zip |
no reason to make these defaulted, we always pass values in
Diffstat (limited to 'activesupport/lib')
-rw-r--r-- | activesupport/lib/active_support/callbacks.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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 |