From a46fa8df063e6ac1aea2bfdfffbf69cd28fef858 Mon Sep 17 00:00:00 2001 From: Santiago Pastorino Date: Tue, 10 Sep 2013 11:01:02 -0300 Subject: Make AC standalone rendering work --- actionpack/lib/abstract_controller/rendering.rb | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'actionpack/lib') diff --git a/actionpack/lib/abstract_controller/rendering.rb b/actionpack/lib/abstract_controller/rendering.rb index adef2d5cf0..6f6079d3c5 100644 --- a/actionpack/lib/abstract_controller/rendering.rb +++ b/actionpack/lib/abstract_controller/rendering.rb @@ -47,7 +47,6 @@ module AbstractController # Performs the actual template rendering. # :api: public def render_to_body(options = {}) - raise NotImplementedError, "no render operation defined" end # Return Content-Type of rendered content @@ -77,7 +76,11 @@ module AbstractController # render "foo/bar" to render :file => "foo/bar". # :api: plugin def _normalize_args(action=nil, options={}) - options + if action.is_a? Hash + action + else + options + end end # Normalize options. -- cgit v1.2.3