Sha256: 56f7b58735e230531306a3b15aa2c0eeb6de5c564fa5afb7ae8098e088c6237f

Contents?: true

Size: 744 Bytes

Versions: 6

Compression:

Stored size: 744 Bytes

Contents

--- action_view/base.rb	(original)
+++ action_view/base.rb	(working copy)
@@ -445,6 +445,11 @@
         end
       end
 
+      # convert template into ruby code
+      def convert_template_into_ruby_code(template)
+        ERB.new(template, nil, @@erb_trim_mode).src
+      end
+
       # Create source code for given template
       def create_template_source(extension, template, render_symbol, locals)
         if template_requires_setup?(extension)
@@ -458,7 +463,7 @@
               "update_page do |page|\n#{template}\nend"
           end
         else
-          body = ERB.new(template, nil, @@erb_trim_mode).src
+          body = convert_template_into_ruby_code(template)
         end
 
         @@template_args[render_symbol] ||= {}

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
erubis-2.2.0 contrib/action_view_base_rb.patch
erubis-2.3.0 contrib/action_view_base_rb.patch
erubis-2.4.0 contrib/action_view_base_rb.patch
erubis-2.3.1 contrib/action_view_base_rb.patch
erubis-2.4.1 contrib/action_view_base_rb.patch
erubis-2.5.0 contrib/action_view_base_rb.patch