Sha256: 457d8803e7dd7a59767c6865f4f06f3073d54eb1ad45ae4197233542d346d66c
Contents?: true
Size: 921 Bytes
Versions: 5
Compression:
Stored size: 921 Bytes
Contents
require_relative 'configuration' module Spree module Backend class Engine < ::Rails::Engine config.middleware.use 'Spree::Backend::Middleware::SeoAssist' initializer 'spree.backend.environment', before: :load_config_initializers do |_app| Spree::Backend::Config = Spree::Backend::Configuration.new end # filter sensitive information during logging initializer 'spree.params.filter' do |app| app.config.filter_parameters += [:password, :password_confirmation, :number] end initializer 'spree.backend.checking_deprecated_preferences' do Spree::Backend::Config.deprecated_preferences.each do |pref| # FIXME: we should only notify about deprecated preferences that are in use, not all of them # warn "[DEPRECATION] Spree::Backend::Config[:#{pref[:name]}] is deprecated. #{pref[:message]}" end end end end end
Version data entries
5 entries across 5 versions & 1 rubygems