From f0a9f814a3ea7237275b2c89df8b378b08e248f8 Mon Sep 17 00:00:00 2001 From: Aaron Patterson Date: Fri, 10 May 2013 14:18:57 -0700 Subject: fix deprecation test --- activesupport/lib/active_support/callbacks.rb | 2 ++ 1 file changed, 2 insertions(+) (limited to 'activesupport/lib') 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, [])) -- cgit v1.2.3