crowdint / acts_as_shopping_cart

Simple Shopping Cart implementation, Official repo: https://github.com/dabit/acts_as_shopping_cart
MIT License
257 stars 88 forks source link

cannot set currency #43

Open francisneedham opened 8 years ago

francisneedham commented 8 years ago

Hi, I'm using the GEM on a rails 5 project. Everything is working perfectly but i cannot change the currency to eur.

i have in my MoneyRails initializer config.default_currency = :eur

but still does not work.

Thanks !

Francis

francisneedham commented 8 years ago

Right now this is my solution

before_validation :set_currency

def set_currency
 self.price_currency = "EUR"
end
softr8 commented 8 years ago

Have you tried the most recent version? https://github.com/dabit/acts_as_shopping_cart