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

Version Path
spree_core-4.7.3 lib/generators/spree/install/templates/config/initializers/spree.rb
spree_core-4.6.6 lib/generators/spree/install/templates/config/initializers/spree.rb
spree_core-4.5.5 lib/generators/spree/install/templates/config/initializers/spree.rb
spree_core-4.0.9 lib/generators/spree/install/templates/config/initializers/spree.rb
spree_core-4.1.15 lib/generators/spree/install/templates/config/initializers/spree.rb
spree_core-4.2.7 lib/generators/spree/install/templates/config/initializers/spree.rb
spree_core-4.3.3 lib/generators/spree/install/templates/config/initializers/spree.rb
spree_core-4.4.1 lib/generators/spree/install/templates/config/initializers/spree.rb
spree_core-4.5.4 lib/generators/spree/install/templates/config/initializers/spree.rb
spree_core-4.6.5 lib/generators/spree/install/templates/config/initializers/spree.rb
spree_core-4.7.2 lib/generators/spree/install/templates/config/initializers/spree.rb
spree_core-4.7.1 lib/generators/spree/install/templates/config/initializers/spree.rb
spree_core-4.6.4 lib/generators/spree/install/templates/config/initializers/spree.rb
spree_core-4.7.0 lib/generators/spree/install/templates/config/initializers/spree.rb
spree_core-4.6.3 lib/generators/spree/install/templates/config/initializers/spree.rb
spree_core-4.6.2 lib/generators/spree/install/templates/config/initializers/spree.rb
spree_core-4.6.1 lib/generators/spree/install/templates/config/initializers/spree.rb
spree_core-4.6.0 lib/generators/spree/install/templates/config/initializers/spree.rb
spree_core-4.5.3 lib/generators/spree/install/templates/config/initializers/spree.rb
spree_core-4.5.2 lib/generators/spree/install/templates/config/initializers/spree.rb