spree/spree — Issue #879: Zone model returns an empty array
Author: raskhadafi
Created: 2011-12-16 10:58:40+00:00
State: open

I tried following code on the rails console.

```
ruby-1.9.2-p290 :011 > Spree::Zone.first.country_list
Spree::Zone Load (0.5ms) SELECT `spree_zones`.* FROM `spree_zones` LIMIT 1
Spree::ZoneMember Load (0.5ms) SELECT `spree_zone_members`.* FROM `spree_zone_members` WHERE `spree_zone_members`.`zone_id` = 3
=> []
```

Then I suspected the zone to not saved the members but see here:

```
ruby-1.9.2-p290 :012 > Spree::Zone.first.members
Spree::Zone Load (0.4ms) SELECT `spree_zones`.* FROM `spree_zones` LIMIT 1
Spree::ZoneMember Load (0.6ms) SELECT `spree_zone_members`.* FROM `spree_zone_members` WHERE `spree_zone_members`.`zone_id` = 3
=> [#, #, #, #, #]
```

And here the zone entry:

```
#
```
It looks like the method country_list is broken.

Thank you for looking in this issue!!
Enjoy your week end! :-)