aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/callbacks.rb
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2013-05-13 14:02:39 -0700
committerAaron Patterson <aaron.patterson@gmail.com>2013-05-13 14:02:39 -0700
commit0b9b132e3293c56fb37a612c51a883df26a2b6c7 (patch)
tree31ba64924fbdb5b4e494b41fd65b392681a5b3ab /activesupport/lib/active_support/callbacks.rb
parent37ca5b09662797928a4f74878595a4e577c5aedd (diff)
downloadrails-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/active_support/callbacks.rb')
-rw-r--r--activesupport/lib/active_support/callbacks.rb2
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