Permalink
Browse files

Remove ActionView::Template#mime_type was deprecated.

  • Loading branch information...
1 parent 5d75579 commit d3e8c149cbac514068f49de9d127ae017a54bf2d @kennyj kennyj committed Jun 1, 2013
Showing with 0 additions and 13 deletions.
  1. +0 −6 actionpack/lib/action_view/template.rb
  2. +0 −7 actionpack/test/template/template_test.rb
@@ -146,12 +146,6 @@ def render(view, locals, buffer=nil, &block)
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
@@ -64,13 +64,6 @@ def setup
@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

0 comments on commit d3e8c14

Please sign in to comment.