Sha256: 9e19ec2a905dceec7e84d0e256705fd9abeedd49a92d6395f2a4bb6d48a5378f

Contents?: true

Size: 1.17 KB

Versions: 29

Compression:

Stored size: 1.17 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.paths << "#{Rails.root}/app/assets/fonts"
        app.config.assets.precompile << /\.(?:svg|eot|woff|ttf)$/

        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/spree/*
          fontawesome-webfont*
          select2_locale*
          jquery.alerts/images/*
        ]
      end
    end
  end
end

Version data entries

29 entries across 29 versions & 1 rubygems

Version Path
spree_backend-3.1.14 lib/spree/backend/engine.rb
spree_backend-3.1.13 lib/spree/backend/engine.rb
spree_backend-3.1.12 lib/spree/backend/engine.rb
spree_backend-3.1.11 lib/spree/backend/engine.rb
spree_backend-3.1.10 lib/spree/backend/engine.rb
spree_backend-3.1.9 lib/spree/backend/engine.rb
spree_backend-3.1.8 lib/spree/backend/engine.rb
spree_backend-3.1.7 lib/spree/backend/engine.rb
spree_backend-3.1.6 lib/spree/backend/engine.rb
spree_backend-3.1.5 lib/spree/backend/engine.rb
spree_backend-3.1.4 lib/spree/backend/engine.rb
spree_backend-3.1.3 lib/spree/backend/engine.rb
spree_backend-3.1.2 lib/spree/backend/engine.rb
spree_backend-3.0.10 lib/spree/backend/engine.rb
spree_backend-3.1.1 lib/spree/backend/engine.rb
spree_backend-3.1.0 lib/spree/backend/engine.rb
spree_backend-3.1.0.rc4 lib/spree/backend/engine.rb
spree_backend-3.0.9 lib/spree/backend/engine.rb
spree_backend-3.1.0.rc3 lib/spree/backend/engine.rb
spree_backend-3.1.0.rc2 lib/spree/backend/engine.rb