Permalink
Browse files

hidden-fields skip doesn't work with a hash

  • Loading branch information...
1 parent 75d83bc commit 7002574fbd1a466d38dc7df55874dcfbd76a8b3a @bryanlarsen bryanlarsen committed Mar 21, 2012
Showing with 3 additions and 2 deletions.
  1. +3 −2 hobo_rapid/taglibs/inputs/hidden_field.dryml
@@ -30,8 +30,9 @@
end.compact
end
skip = comma_split skip
- pairs.reject! { |p| p.first.in?(skip) }
- pairs.map { |n, v| hidden_field_tag(n, v.to_s) if v && n.not_in?(scope.form_field_names) }.compact.safe_join("\n".html_safe)
+ pairs.to_a.reject { |p| p.first.in?(skip) }.map { |n, v|
+ hidden_field_tag(n, v.to_s) if v && n.not_in?(scope.form_field_names)
+ }.compact.safe_join("\n".html_safe)
%></def>

0 comments on commit 7002574

Please sign in to comment.