Sha256: b83fffc1fde3303b4d142256a73f074973ae6c471259b1a8481dc9ec287faa6f

Contents?: true

Size: 1.04 KB

Versions: 30

Compression:

Stored size: 1.04 KB

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.precompile += %w[
          spree/backend/all*
          spree/backend/orders/edit_form.js
          spree/backend/address_states.js
          jqPlot/excanvas.min.js
          spree/backend/images/new.js
          jquery.jstree/themes/apple/*
          fontawesome-webfont*
          select2_locale*
          jquery.alerts/images/*
        ]
      end
    end
  end
end

Version data entries

30 entries across 30 versions & 2 rubygems

Version Path
spree_backend-2.4.10 lib/spree/backend/engine.rb
spree_backend-2.3.13 lib/spree/backend/engine.rb
spree_backend-2.4.9 lib/spree/backend/engine.rb
spree_backend-2.3.12 lib/spree/backend/engine.rb
solidus_backend-1.0.0.pre2 lib/spree/backend/engine.rb
spree_backend-2.4.8 lib/spree/backend/engine.rb
spree_backend-2.3.11 lib/spree/backend/engine.rb
solidus_backend-1.0.0.pre lib/spree/backend/engine.rb
spree_backend-2.4.7 lib/spree/backend/engine.rb
spree_backend-2.3.10 lib/spree/backend/engine.rb
spree_backend-2.4.6 lib/spree/backend/engine.rb
spree_backend-2.3.9 lib/spree/backend/engine.rb
spree_backend-2.3.8 lib/spree/backend/engine.rb
spree_backend-2.4.5 lib/spree/backend/engine.rb
spree_backend-2.4.4 lib/spree/backend/engine.rb
spree_backend-2.3.7 lib/spree/backend/engine.rb
spree_backend-2.4.3 lib/spree/backend/engine.rb
spree_backend-2.4.2 lib/spree/backend/engine.rb
spree_backend-2.3.6 lib/spree/backend/engine.rb
spree_backend-2.4.1 lib/spree/backend/engine.rb