From 148aff2097890a81e874a7c60bae5fa3b2a4d1fd Mon Sep 17 00:00:00 2001 From: Joshua Peek Date: Thu, 4 Dec 2008 17:20:51 -0600 Subject: Set template_format to html inside rjs templates so renders within it default to html. --- actionpack/lib/action_view/base.rb | 3 --- 1 file changed, 3 deletions(-) (limited to 'actionpack/lib/action_view/base.rb') diff --git a/actionpack/lib/action_view/base.rb b/actionpack/lib/action_view/base.rb index a731fa3e1d..b8a5d39b20 100644 --- a/actionpack/lib/action_view/base.rb +++ b/actionpack/lib/action_view/base.rb @@ -327,9 +327,6 @@ module ActionView #:nodoc: elsif (first_render = @_render_stack.first) && first_render.respond_to?(:format_and_extension) && (template = self.view_paths["#{template_file_name}.#{first_render.format_and_extension}"]) template - elsif template_format == :js && template = self.view_paths["#{template_file_name}.html"] - @template_format = :html - template else template = Template.new(template_path, view_paths) -- cgit v1.2.3