From 656628961c009524bd97ec5682b3dab3b850cb8a Mon Sep 17 00:00:00 2001 From: brainopia Date: Thu, 22 Jan 2015 00:23:22 +0300 Subject: Add ActionController::Base.render --- actionpack/lib/action_controller/metal/rendering.rb | 3 +++ 1 file changed, 3 insertions(+) (limited to 'actionpack/lib') 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 -- cgit v1.2.3