From d108672dada7ba97d3b3b56f0c6001cea621061e Mon Sep 17 00:00:00 2001 From: Yves Senn Date: Fri, 5 Jul 2013 12:32:05 +0200 Subject: remove string based terminators for `ActiveSupport::Callbacks`. --- activesupport/lib/active_support/callbacks.rb | 6 ------ 1 file changed, 6 deletions(-) (limited to 'activesupport/lib/active_support') diff --git a/activesupport/lib/active_support/callbacks.rb b/activesupport/lib/active_support/callbacks.rb index 5c738572a8..d2991a218b 100644 --- a/activesupport/lib/active_support/callbacks.rb +++ b/activesupport/lib/active_support/callbacks.rb @@ -718,12 +718,6 @@ module ActiveSupport # would call Audit#save. def define_callbacks(*names) options = names.extract_options! - if options.key?(:terminator) && String === options[:terminator] - ActiveSupport::Deprecation.warn "String based terminators are deprecated, please use a lambda" - value = options[:terminator] - line = class_eval "lambda { |result| #{value} }", __FILE__, __LINE__ - options[:terminator] = lambda { |target, result| target.instance_exec(result, &line) } - end names.each do |name| class_attribute "_#{name}_callbacks" -- cgit v1.2.3