You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 17, 2020. It is now read-only.
I think it's a really bad idea to have a global constant ADDRESS_FIELDS. Not only willy it raise constant redefined warning if you need to change it, it also could override another constant, because it isn't namespaced into a class.
I think it would be a much better idea to store this as a spree addressbook preference:
classSpree::AddressBookConfiguration# ...preference:address_fields,:string,:default=>"firstname lastname company address1 address2 city state zipcode country phone"end
I think it's a really bad idea to have a global constant
ADDRESS_FIELDS
. Not only willy it raise constant redefined warning if you need to change it, it also could override another constant, because it isn't namespaced into a class.I think it would be a much better idea to store this as a spree addressbook preference:
Then in the form code:
If you agree, I'd be happy to make a PR.
The text was updated successfully, but these errors were encountered: