From 55dae540c3030d6fce7b16bc1742329607a260fd Mon Sep 17 00:00:00 2001 From: Ryan Bigg Date: Wed, 16 Nov 2011 10:28:05 +1300 Subject: [PATCH] Correctly namespace references to Country, State and Zone Fixes #760 --- core/app/views/spree/admin/zones/_country_member.html.erb | 2 +- core/app/views/spree/admin/zones/_state_member.html.erb | 2 +- core/app/views/spree/admin/zones/_zone_member.html.erb | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/core/app/views/spree/admin/zones/_country_member.html.erb b/core/app/views/spree/admin/zones/_country_member.html.erb index 1fd8b138e02..9164c41f37e 100644 --- a/core/app/views/spree/admin/zones/_country_member.html.erb +++ b/core/app/views/spree/admin/zones/_country_member.html.erb @@ -1,5 +1,5 @@
  • - <%= 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 %>
  • diff --git a/core/app/views/spree/admin/zones/_state_member.html.erb b/core/app/views/spree/admin/zones/_state_member.html.erb index b0a55af086e..0667e35e263 100644 --- a/core/app/views/spree/admin/zones/_state_member.html.erb +++ b/core/app/views/spree/admin/zones/_state_member.html.erb @@ -1,5 +1,5 @@
  • - <%= 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 %>
  • diff --git a/core/app/views/spree/admin/zones/_zone_member.html.erb b/core/app/views/spree/admin/zones/_zone_member.html.erb index e2713d02351..e9892570aaf 100644 --- a/core/app/views/spree/admin/zones/_zone_member.html.erb +++ b/core/app/views/spree/admin/zones/_zone_member.html.erb @@ -1,5 +1,5 @@
  • - <%= 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 %>