diff options
author | kennyj <kennyj@gmail.com> | 2013-06-01 21:44:38 +0900 |
---|---|---|
committer | kennyj <kennyj@gmail.com> | 2013-06-01 23:22:12 +0900 |
commit | d3e8c149cbac514068f49de9d127ae017a54bf2d (patch) | |
tree | 97ba08b12a2f0d931edace1206b405e9edca8b96 /actionpack | |
parent | 5d75579eec90e4fe0f3d33adbf5e7065a7cdcfa3 (diff) | |
download | rails-d3e8c149cbac514068f49de9d127ae017a54bf2d.tar.gz rails-d3e8c149cbac514068f49de9d127ae017a54bf2d.tar.bz2 rails-d3e8c149cbac514068f49de9d127ae017a54bf2d.zip |
Remove ActionView::Template#mime_type was deprecated.
Diffstat (limited to 'actionpack')
-rw-r--r-- | actionpack/lib/action_view/template.rb | 6 | ||||
-rw-r--r-- | actionpack/test/template/template_test.rb | 7 |
2 files changed, 0 insertions, 13 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 diff --git a/actionpack/test/template/template_test.rb b/actionpack/test/template/template_test.rb index 8d32205fb8..c94508d678 100644 --- a/actionpack/test/template/template_test.rb +++ b/actionpack/test/template/template_test.rb @@ -64,13 +64,6 @@ class TestERBTemplate < ActiveSupport::TestCase @context = Context.new end - def test_mime_type_is_deprecated - template = new_template - assert_deprecated 'Template#mime_type is deprecated and will be removed' do - template.mime_type - end - end - def test_basic_template @template = new_template assert_equal "Hello", render |