Patches: Browse | Submit New | Admin

[#6726] Rails helper generates wrong code for local assigns

Date:
2006-11-17 13:25
Priority:
3
Submitted By:
Nobody
Assigned To:
Nobody (None)
Category:
None
State:
Open
Summary:
Rails helper generates wrong code for local assigns

Detailed description
--- /usr/local/lib/ruby/gems/1.8/gems/erubis-2.1.0/lib/erubis/helper/rails.rb  2006-11-17 05:21:11.886847046 -0800
+++ erubis-rails.rb     2006-11-17 05:20:57.334470184 -0800
@@ -93,7 +93,7 @@
 
 
       def _localvar_code(_localvars)
-        list = _localvars.collect { |_name| "#{_name} = _localvars[#{_name.inspect}]\n" }
+        list = _localvars.collect { |_name,| "#{_name} = _localvars[#{_name.inspect}]\n" }
         code = list.join()
         return code
       end

Add A Comment: Notepad

Please login


Followup

No Followups Have Been Posted

Attached Files:

Name Description Download
No Files Currently Attached

Changes:

No Changes Have Been Made to This Item