From b955939d55b71905fa3e5036149ee4c84943c599 Mon Sep 17 00:00:00 2001 From: Alexey Gaziev Date: Tue, 30 Oct 2012 10:23:41 +0800 Subject: Make caller attribute in deprecation methods optional --- actionpack/lib/action_view/template.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'actionpack/lib/action_view/template.rb') diff --git a/actionpack/lib/action_view/template.rb b/actionpack/lib/action_view/template.rb index 01a6bb42c8..aefc42be48 100644 --- a/actionpack/lib/action_view/template.rb +++ b/actionpack/lib/action_view/template.rb @@ -150,7 +150,7 @@ module ActionView def mime_type message = 'Template#mime_type is deprecated and will be removed in Rails 4.1. Please use type method instead.' - ActiveSupport::Deprecation.warn(message, caller) + ActiveSupport::Deprecation.warn message @mime_type ||= Mime::Type.lookup_by_extension(@formats.first.to_s) if @formats.first end -- cgit v1.2.3