From 6244d16eaf8eea9ce963f08dced60399b121a6dc Mon Sep 17 00:00:00 2001 From: Carlos Antonio da Silva Date: Sun, 15 Jan 2012 15:34:50 -0200 Subject: Move render :nothing and :text => nil options to AC::Rendering --- actionpack/lib/abstract_controller/rendering.rb | 3 +++ 1 file changed, 3 insertions(+) (limited to 'actionpack/lib/abstract_controller/rendering.rb') diff --git a/actionpack/lib/abstract_controller/rendering.rb b/actionpack/lib/abstract_controller/rendering.rb index ddc93464cd..bca0dcffd8 100644 --- a/actionpack/lib/abstract_controller/rendering.rb +++ b/actionpack/lib/abstract_controller/rendering.rb @@ -165,6 +165,9 @@ module AbstractController options[:prefixes] ||= _prefixes end + options[:text] = nil if options.delete(:nothing) == true + options[:text] = " " if options.key?(:text) && options[:text].nil? + options[:template] ||= (options[:action] || action_name).to_s options end -- cgit v1.2.3