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.
Changes the
Engine
'sactivate
method to run onbefore_initialize
rather thanto_prepare
as the decorators should be loaded beforeconfig/initializers/spree.rb
If they are loaded after the initializers, code such as
Spree::Config[:allow_currency_change] = true
inspree.rb
will fail due to undefined preferences.