Skip to content

Commit

Permalink
Fix to avoid creation of duplicate form-tags in taglib/auto/rapid/for…
Browse files Browse the repository at this point in the history
…ms.dryml for transitions with the same name (same origin, different effect as the 765bad9 fix for routes).
  • Loading branch information
Spiralis authored and bryanlarsen committed Jul 8, 2011
1 parent 970e0ec commit 57f98b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hobo/lib/hobo/rapid/generators/rapid/forms.dryml.erb
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ model_key = model.to_s.underscore
</def>
<% end -%>
<% transitions.each do |transition| -%>
<% transitions.uniq{|s| s.name}.each do |transition| -%>
<def tag="<%= transition.name.to_s.dasherize %>-form" polymorphic/>
<def tag="<%= transition.name.to_s.dasherize %>-form" for="<%= model.name %>">
<form lifecycle="<%= transition.name %>" merge param="default">
Expand Down

0 comments on commit 57f98b0

Please sign in to comment.