aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_controller/metal/rendering.rb
diff options
context:
space:
mode:
authorbrainopia <brainopia@evilmartians.com>2015-01-22 00:23:22 +0300
committerbrainopia <brainopia@evilmartians.com>2015-01-22 01:02:13 +0300
commit656628961c009524bd97ec5682b3dab3b850cb8a (patch)
tree2e1d8b910d781f2a0366b623e7bd5fd33fa2c247 /actionpack/lib/action_controller/metal/rendering.rb
parent801e399e42cab610860e307f2dd77c1edb6e1fac (diff)
downloadrails-656628961c009524bd97ec5682b3dab3b850cb8a.tar.gz
rails-656628961c009524bd97ec5682b3dab3b850cb8a.tar.bz2
rails-656628961c009524bd97ec5682b3dab3b850cb8a.zip
Add ActionController::Base.render
Diffstat (limited to 'actionpack/lib/action_controller/metal/rendering.rb')
-rw-r--r--actionpack/lib/action_controller/metal/rendering.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/actionpack/lib/action_controller/metal/rendering.rb b/actionpack/lib/action_controller/metal/rendering.rb
index 2370c607ed..2d15c39d88 100644
--- a/actionpack/lib/action_controller/metal/rendering.rb
+++ b/actionpack/lib/action_controller/metal/rendering.rb
@@ -5,6 +5,9 @@ module ActionController
RENDER_FORMATS_IN_PRIORITY = [:body, :text, :plain, :html]
module ClassMethods
+ # Documentation at ActionController::Renderer#render
+ delegate :render, to: :renderer
+
# Returns a renderer class (inherited from ActionController::Renderer)
# for the controller.
def renderer