spree/spree — Issue #850: Address country setter method broken
Author: radar
Created: 2011-12-07 05:23:31+00:00
State: open
Labels: verified

Attempting to do this (yes, it's a String, just ignore that for now):

Spree::Address.new.country = "a country"

Results in "uninitialized constant Country". This is because Rails is broken.

The way to fix this is to:

a) Patch Rails and ask them nicely to release a new version (lol!)
b) Specify `:class_name => "Spree::Country"` on this association as well as similar things on the other associations also.