Sha256: 6f50dedd50846adbda40d43c677f1364b550ee129ad08e459536f5707b49f276

Contents?: true

Size: 1015 Bytes

Versions: 11

Compression:

Stored size: 1015 Bytes

Contents

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::BackendConfiguration.new
      end

      # filter sensitive information during logging
      initializer "spree.params.filter" do |app|
        app.config.filter_parameters += [:password, :password_confirmation, :number]
      end

      # sets the manifests / assets to be precompiled, even when initialize_on_precompile is false
      initializer "spree.assets.precompile", group: :all do |app|
        app.config.assets.paths << "#{Rails.root}/app/assets/fonts"
        app.config.assets.precompile << /\.(?:svg|eot|woff|ttf)$/

        app.config.assets.precompile += %w[
          spree/backend/all*
          spree/backend/address_states.js
          jquery.jstree/themes/spree/*
          select2_locale*
        ]
      end
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
spree_backend-3.3.6 lib/spree/backend/engine.rb
spree_backend-3.3.5 lib/spree/backend/engine.rb
spree_backend-3.3.4 lib/spree/backend/engine.rb
spree_backend-3.3.3 lib/spree/backend/engine.rb
spree_backend-3.3.2 lib/spree/backend/engine.rb
spree_backend-3.3.1 lib/spree/backend/engine.rb
spree_backend-3.3.0 lib/spree/backend/engine.rb
spree_backend-3.3.0.rc4 lib/spree/backend/engine.rb
spree_backend-3.3.0.rc3 lib/spree/backend/engine.rb
spree_backend-3.3.0.rc2 lib/spree/backend/engine.rb
spree_backend-3.3.0.rc1 lib/spree/backend/engine.rb