From f5478d9263e9aa036a09199be7a5fe0644e02031 Mon Sep 17 00:00:00 2001 From: Aaron Patterson Date: Thu, 9 May 2013 11:59:39 -0700 Subject: make_lambda is never called with an Array --- activesupport/lib/active_support/callbacks.rb | 2 -- 1 file changed, 2 deletions(-) (limited to 'activesupport/lib') diff --git a/activesupport/lib/active_support/callbacks.rb b/activesupport/lib/active_support/callbacks.rb index 05204d34e4..d869770489 100644 --- a/activesupport/lib/active_support/callbacks.rb +++ b/activesupport/lib/active_support/callbacks.rb @@ -254,8 +254,6 @@ module ActiveSupport # on the object. def make_lambda(filter) case filter - when Array - filter.map {|f| _compile_options(f)} when Symbol lambda { |target, value, &blk| target.send filter, &blk -- cgit v1.2.3