aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_view/template/resolver.rb
diff options
context:
space:
mode:
authorPiotr Sarnacki <drogus@gmail.com>2012-06-15 17:17:21 +0200
committerPiotr Sarnacki <drogus@gmail.com>2012-08-28 10:51:04 +0200
commitf21a528f5508430bf9281dffe938bda6c9fbd84b (patch)
tree97bc6a92f13eb04b3eb4bb4f91264137f271cbdc /actionpack/lib/action_view/template/resolver.rb
parent7abc0c73bdaa004948f89336b0c4dfeb1f357269 (diff)
downloadrails-f21a528f5508430bf9281dffe938bda6c9fbd84b.tar.gz
rails-f21a528f5508430bf9281dffe938bda6c9fbd84b.tar.bz2
rails-f21a528f5508430bf9281dffe938bda6c9fbd84b.zip
Remove Mime::Type translations from Action View
Action View should not be responsible for translating mime types. Any translation that's needed should be handled at controller level.
Diffstat (limited to 'actionpack/lib/action_view/template/resolver.rb')
-rw-r--r--actionpack/lib/action_view/template/resolver.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_view/template/resolver.rb b/actionpack/lib/action_view/template/resolver.rb
index 2bb656fac9..a8c8e919e2 100644
--- a/actionpack/lib/action_view/template/resolver.rb
+++ b/actionpack/lib/action_view/template/resolver.rb
@@ -235,7 +235,7 @@ module ActionView
extension = pieces.pop
ActiveSupport::Deprecation.warn "The file #{path} did not specify a template handler. The default is currently ERB, but will change to RAW in the future." unless extension
handler = Template.handler_for_extension(extension)
- format = pieces.last && Mime[pieces.last]
+ format = pieces.last && pieces.last.to_sym
[handler, format]
end
end