Sha256: 3b5a87f74340629ddb243159e5b18d52c624034b7b862786ed661ac4080e49d5
Contents?: true
Size: 1.41 KB
Versions: 57
Compression:
Stored size: 1.41 KB
Contents
# Configure Spree Preferences # # Note: Initializing preferences available within the Admin will overwrite any changes that were made through the user interface when you restart. # If you would like users to be able to update a setting with the Admin it should NOT be set here. # # Note: If a preference is set here it will be stored within the cache & database upon initialization. # Just removing an entry from this initializer will not make the preference value go away. # Instead you must either set a new value or remove entry, clear cache, and remove database entry. # # In order to initialize a setting do: # config.setting_name = 'new value' Spree.config do |config| # Example: # Uncomment to stop tracking inventory levels in the application # config.track_inventory_levels = false end # Configure Spree Dependencies # # Note: If a dependency is set here it will NOT be stored within the cache & database upon initialization. # Just removing an entry from this initializer will make the dependency value go away. # Spree.dependencies do |dependencies| # Example: # Uncomment to change the default Service handling adding Items to Cart # dependencies.cart_add_item_service = 'MyNewAwesomeService' end # Spree::Api::Dependencies.storefront_cart_serializer = 'MyRailsApp::CartSerializer' Spree.user_class = <%= (options[:user_class].blank? ? 'Spree::LegacyUser' : options[:user_class]).inspect %>
Version data entries
57 entries across 57 versions & 1 rubygems