diff options
author | brainopia <brainopia@evilmartians.com> | 2015-01-22 00:23:22 +0300 |
---|---|---|
committer | brainopia <brainopia@evilmartians.com> | 2015-01-22 01:02:13 +0300 |
commit | 656628961c009524bd97ec5682b3dab3b850cb8a (patch) | |
tree | 2e1d8b910d781f2a0366b623e7bd5fd33fa2c247 /actionpack/lib/action_controller | |
parent | 801e399e42cab610860e307f2dd77c1edb6e1fac (diff) | |
download | rails-656628961c009524bd97ec5682b3dab3b850cb8a.tar.gz rails-656628961c009524bd97ec5682b3dab3b850cb8a.tar.bz2 rails-656628961c009524bd97ec5682b3dab3b850cb8a.zip |
Add ActionController::Base.render
Diffstat (limited to 'actionpack/lib/action_controller')
-rw-r--r-- | actionpack/lib/action_controller/metal/rendering.rb | 3 |
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 |