diff options
author | José Valim <jose.valim@gmail.com> | 2010-10-10 22:40:13 +0200 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2010-10-10 23:12:22 +0200 |
commit | 682368d4ba0bb4548f896d02bc4e038ee8ba6b4d (patch) | |
tree | ec2b03c8a1adae7fd7089aabc5466b8b3a932b11 /actionpack/lib/action_view/renderer | |
parent | f659a1576fc4a447bbfbd866c7244d8d790a3d9c (diff) | |
download | rails-682368d4ba0bb4548f896d02bc4e038ee8ba6b4d.tar.gz rails-682368d4ba0bb4548f896d02bc4e038ee8ba6b4d.tar.bz2 rails-682368d4ba0bb4548f896d02bc4e038ee8ba6b4d.zip |
Use identifiers for template equality.
Diffstat (limited to 'actionpack/lib/action_view/renderer')
-rw-r--r-- | actionpack/lib/action_view/renderer/template_renderer.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_view/renderer/template_renderer.rb b/actionpack/lib/action_view/renderer/template_renderer.rb index 9f9df15347..a9076760c5 100644 --- a/actionpack/lib/action_view/renderer/template_renderer.rb +++ b/actionpack/lib/action_view/renderer/template_renderer.rb @@ -45,7 +45,7 @@ module ActionView with_fallbacks { find_template(options[:file], options[:prefix], false, keys) } elsif options.key?(:inline) handler = Template.handler_class_for_extension(options[:type] || "erb") - Template.new(options[:inline], "inline template", handler, { :locals => keys }) + Template::Inline.new(options[:inline], handler, :locals => keys) elsif options.key?(:template) options[:template].respond_to?(:render) ? options[:template] : find_template(options[:template], options[:prefix], false, keys) |