aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_view
diff options
context:
space:
mode:
authorkennyj <kennyj@gmail.com>2013-06-01 21:44:38 +0900
committerkennyj <kennyj@gmail.com>2013-06-01 23:22:12 +0900
commitd3e8c149cbac514068f49de9d127ae017a54bf2d (patch)
tree97ba08b12a2f0d931edace1206b405e9edca8b96 /actionpack/lib/action_view
parent5d75579eec90e4fe0f3d33adbf5e7065a7cdcfa3 (diff)
downloadrails-d3e8c149cbac514068f49de9d127ae017a54bf2d.tar.gz
rails-d3e8c149cbac514068f49de9d127ae017a54bf2d.tar.bz2
rails-d3e8c149cbac514068f49de9d127ae017a54bf2d.zip
Remove ActionView::Template#mime_type was deprecated.
Diffstat (limited to 'actionpack/lib/action_view')
-rw-r--r--actionpack/lib/action_view/template.rb6
1 files changed, 0 insertions, 6 deletions
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