aboutsummaryrefslogtreecommitdiffstats
path: root/actionview/test/actionpack/controller
diff options
context:
space:
mode:
authorJeremy Daer <jeremydaer@gmail.com>2015-10-06 11:30:02 -0700
committerJeremy Daer <jeremydaer@gmail.com>2015-10-06 11:30:02 -0700
commit71317e6406dba9a552760ec035b67b3c16162528 (patch)
tree78cc5fc25b114c26e14d855370e16139dbd4b679 /actionview/test/actionpack/controller
parent5b69e30622de27e8010fd8cb32a97b5f0fe194e2 (diff)
parent565094a8b5cdfa158fef6ae75252fd98a4ba8fe4 (diff)
downloadrails-71317e6406dba9a552760ec035b67b3c16162528.tar.gz
rails-71317e6406dba9a552760ec035b67b3c16162528.tar.bz2
rails-71317e6406dba9a552760ec035b67b3c16162528.zip
Merge pull request #21869 from jeremy/mime-constant-deprecation
Use `Mime[:foo]` instead of `Mime::Type[:FOO]` for back compat
Diffstat (limited to 'actionview/test/actionpack/controller')
-rw-r--r--actionview/test/actionpack/controller/render_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/actionview/test/actionpack/controller/render_test.rb b/actionview/test/actionpack/controller/render_test.rb
index 9409775fef..bdb9e0397b 100644
--- a/actionview/test/actionpack/controller/render_test.rb
+++ b/actionview/test/actionpack/controller/render_test.rb
@@ -466,7 +466,7 @@ class TestController < ApplicationController
end
def render_content_type_from_body
- response.content_type = Mime::RSS
+ response.content_type = Mime[:rss]
render body: "hello world!"
end