Skip to content

Commit

Permalink
Correctly namespace references to Country, State and Zone
Browse files Browse the repository at this point in the history
Fixes spree#760
  • Loading branch information
radar committed Nov 15, 2011
1 parent fd70ade commit 55dae54
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion core/app/views/spree/admin/zones/_country_member.html.erb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<li data-hook="country_member">
<%= f.hidden_field :zoneable_type, :value => 'Country' %>
<%= f.hidden_field :zoneable_type, :value => 'Spree::Country' %>
<%= f.collection_select(:zoneable_id, @countries, :id, :name, :include_blank => true) %>
<%= remove_nested f %>
</li>
2 changes: 1 addition & 1 deletion core/app/views/spree/admin/zones/_state_member.html.erb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<li data-hook="state_member">
<%= f.hidden_field :zoneable_type, :value => 'State' %>
<%= f.hidden_field :zoneable_type, :value => 'Spree::State' %>
<%= f.collection_select(:zoneable_id, @states, :id, :name, :include_blank => true) %>
<%= remove_nested f %>
</li>
2 changes: 1 addition & 1 deletion core/app/views/spree/admin/zones/_zone_member.html.erb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<li data-hook="zone_member">
<%= f.hidden_field :zoneable_type, :value => "Zone" %>
<%= f.hidden_field :zoneable_type, :value => "Spree::Zone" %>
<%= f.collection_select(:zoneable_id, @zones, :id, :name, :include_blank => true) %>
<%= remove_nested f %>
</li>

0 comments on commit 55dae54

Please sign in to comment.