solidus
https://github.com/solidusio/solidus
Ruby
🛒 Solidus, the open-source eCommerce framework for industry trailblazers.
Spree::Preferences::Configuration#use_static_preferences!
Replace the default legacy preference store, which stores preferences in the spree_preferences table, with a plain in memory hash. This is faster and less error prone. This will set all preferences to their default values. These won't be loaded from or persisted to the database, so any desired changes must be made each time the application is started, such as in an initializer.
Edit
git clone [email protected]:solidusio/solidus.git
cd solidus
open core/lib/spree/preferences/configuration.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-Spree--Preferences--Configuration-use_static_preferences--for-pr
# Commit to gitgit add core/lib/spree/preferences/configuration.rbgit commit -m "better docs for Spree::Preferences::Configuration#use_static_preferences!"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-Spree--Preferences--Configuration-use_static_preferences--for-pr
hub pull-request
# Celebrate!