Permalink
Browse files

Make Mime::TEXT default format in AbstractController

  • Loading branch information...
lukaszx0 committed Sep 3, 2013
1 parent aea02eb commit d35cf4b6a0645dffb508ae1a5ad10924f7026f0f
@@ -50,6 +50,7 @@ def render_to_body(options = {})
# Return Content-Type of rendered content
# :api: public
def rendered_format
+ Mime::TEXT
end
DEFAULT_PROTECTED_INSTANCE_VARIABLES = %w(
@@ -20,10 +20,6 @@ def render(*args, &block)
end
end
- def rendered_format
- Mime::TEXT
- end
-
class UnsupportedOperationError < StandardError
def initialize
super "Unsupported render operation. BasicRendering supports only :text and :nothing options. For more, you need to include ActionView."

0 comments on commit d35cf4b

Please sign in to comment.