lib/action_view/base.rb in actionpack-2.1.0 vs lib/action_view/base.rb in actionpack-2.1.1

- old
+ new

@@ -176,14 +176,17 @@ # Specify whether RJS responses should be wrapped in a try/catch block # that alert()s the caught exception (and then re-raises it). @@debug_rjs = false cattr_accessor :debug_rjs - + @@erb_variable = '_erbout' cattr_accessor :erb_variable - + class << self + deprecate :erb_variable= => 'The erb variable will no longer be configurable. Use the concat helper method instead of appending to it directly.' + end + attr_internal :request delegate :request_forgery_protection_token, :template, :params, :session, :cookies, :response, :headers, :flash, :logger, :action_name, :to => :controller @@ -251,10 +254,11 @@ if options.is_a?(String) render_file(options, true, local_assigns) elsif options == :update update_page(&block) elsif options.is_a?(Hash) + use_full_path = options[:use_full_path] options = options.reverse_merge(:locals => {}, :use_full_path => true) if partial_layout = options.delete(:layout) if block_given? wrap_content_for_layout capture(&block) do @@ -264,10 +268,10 @@ wrap_content_for_layout render(options) do render(options.merge(:partial => partial_layout)) end end elsif options[:file] - render_file(options[:file], options[:use_full_path], options[:locals]) + render_file(options[:file], use_full_path || false, options[:locals]) elsif options[:partial] && options[:collection] render_partial_collection(options[:partial], options[:collection], options[:spacer_template], options[:locals]) elsif options[:partial] render_partial(options[:partial], ActionView::Base::ObjectWrapper.new(options[:object]), options[:locals]) elsif options[:inline]