remove a redundant thing

This commit is contained in:
John Bintz 2011-05-25 08:23:42 -04:00
parent 25251bbe55
commit 0ea172d5e3

View File

@ -1,11 +1,10 @@
module AbstractController::Callbacks::ClassMethods
def before_filter_with_logging(*args, &block)
filter_name = args.first.kind_of?(::Symbol) ? args.first : '<< anonymous >>'
if block_given?
Rails.logger.debug("Can't log filters with blocks: #{caller[0..3].join("\n")}")
before_filter_without_logging *args, &block
else
filter_name = args.shift
before_filter_without_logging create_logging_filter(filter_name), *args
end
end