Spree Initializer
To change values for these preferences, you need to edit yourconfig/initializers/spree.rb file.
For example, to disable the expedited_exchanges feature, you would add the following line:
Remember to restart your Rails server after making changes to the
config/initializers/spree.rb file.Accessing Configuration
To access these preferences in your application, you can use theSpree::Config module. For example, to access the expedited_exchanges preference, you can do the following:
expedited_exchanges preference. You can also set the value of a preference using the Spree::Config module. For example, to set the expedited_exchanges preference to true, you can do the following:
expedited_exchanges preference to true for the current process. After restarting the Rails server, the preference will return to the default value or the one set in the initializer.
