From d3e8c149cbac514068f49de9d127ae017a54bf2d Mon Sep 17 00:00:00 2001 From: kennyj Date: Sat, 1 Jun 2013 21:44:38 +0900 Subject: Remove ActionView::Template#mime_type was deprecated. --- actionpack/lib/action_view/template.rb | 6 ------ 1 file changed, 6 deletions(-) (limited to 'actionpack/lib/action_view') diff --git a/actionpack/lib/action_view/template.rb b/actionpack/lib/action_view/template.rb index ebbc1c79d6..c25b1efc2b 100644 --- a/actionpack/lib/action_view/template.rb +++ b/actionpack/lib/action_view/template.rb @@ -146,12 +146,6 @@ module ActionView handle_render_error(view, e) end - 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 - @mime_type ||= Mime::Type.lookup_by_extension(@formats.first.to_s) if @formats.first - end - def type @type ||= Types[@formats.first] if @formats.first end -- cgit v1.2.3