aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/abstract_controller/rendering.rb
diff options
context:
space:
mode:
authorJosé Valim <jose.valim@plataformatec.com.br>2013-09-09 16:10:41 -0300
committerJosé Valim <jose.valim@plataformatec.com.br>2013-09-09 16:10:41 -0300
commit1385ae138d701174916a3c44d8bc8b92f3dd3aeb (patch)
tree1fab5a6601056a34ae0ec596165bd647979abd4e /actionpack/lib/abstract_controller/rendering.rb
parent67336ce199d4eece2f6047a13e692c356e5caa97 (diff)
downloadrails-1385ae138d701174916a3c44d8bc8b92f3dd3aeb.tar.gz
rails-1385ae138d701174916a3c44d8bc8b92f3dd3aeb.tar.bz2
rails-1385ae138d701174916a3c44d8bc8b92f3dd3aeb.zip
Remove BasicRendering tests
Diffstat (limited to 'actionpack/lib/abstract_controller/rendering.rb')
-rw-r--r--actionpack/lib/abstract_controller/rendering.rb10
1 files changed, 1 insertions, 9 deletions
diff --git a/actionpack/lib/abstract_controller/rendering.rb b/actionpack/lib/abstract_controller/rendering.rb
index 242c44a6eb..adef2d5cf0 100644
--- a/actionpack/lib/abstract_controller/rendering.rb
+++ b/actionpack/lib/abstract_controller/rendering.rb
@@ -10,14 +10,6 @@ module AbstractController
end
end
- class UnsupportedOperationError < Error
- DEFAULT_MESSAGE = "Unsupported render operation. BasicRendering supports only :text and :nothing options. For more, you need to include ActionView."
-
- def initialize
- super DEFAULT_MESSAGE
- end
- end
-
module Rendering
extend ActiveSupport::Concern
@@ -55,7 +47,7 @@ module AbstractController
# Performs the actual template rendering.
# :api: public
def render_to_body(options = {})
- raise UnsupportedOperationError
+ raise NotImplementedError, "no render operation defined"
end
# Return Content-Type of rendered content