aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2013-05-10 14:18:57 -0700
committerAaron Patterson <aaron.patterson@gmail.com>2013-05-10 14:18:57 -0700
commitf0a9f814a3ea7237275b2c89df8b378b08e248f8 (patch)
tree74bfc1a49f81a96356030c62f891d7ea3f9e05f8 /activesupport/lib
parent929658c98d48eeba7f65ec4afb0f8cbedadaf270 (diff)
downloadrails-f0a9f814a3ea7237275b2c89df8b378b08e248f8.tar.gz
rails-f0a9f814a3ea7237275b2c89df8b378b08e248f8.tar.bz2
rails-f0a9f814a3ea7237275b2c89df8b378b08e248f8.zip
fix deprecation test
Diffstat (limited to 'activesupport/lib')
-rw-r--r--activesupport/lib/active_support/callbacks.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/activesupport/lib/active_support/callbacks.rb b/activesupport/lib/active_support/callbacks.rb
index 0370a27f32..76fc7a76a6 100644
--- a/activesupport/lib/active_support/callbacks.rb
+++ b/activesupport/lib/active_support/callbacks.rb
@@ -126,6 +126,8 @@ module ActiveSupport
:unless => @options[:unless].dup
}
+ deprecate_per_key_option new_options
+
_options[:if].concat Array(new_options.fetch(:unless, []))
_options[:unless].concat Array(new_options.fetch(:if, []))