spree-contrib / spree_multi_currency

Provides UI to allow configuring multiple currencies in Spree.
http://guides.spreecommerce.org
BSD 3-Clause "New" or "Revised" License
41 stars 117 forks source link

Fix engine init callback #48

Closed JonnieCache closed 8 years ago

JonnieCache commented 8 years ago

Changes the Engine's activate method to run on before_initialize rather than to_prepare as the decorators should be loaded before config/initializers/spree.rb

If they are loaded after the initializers, code such as Spree::Config[:allow_currency_change] = true in spree.rb will fail due to undefined preferences.

JonnieCache commented 8 years ago

aargh this completely breaks the thing. i ran tests on the wrong branch. sorry.