Sha256: 68cb466b100d27abe63e38a3a42a79526e15575ff5fb295dfb190d38a716b62d

Contents?: true

Size: 361 Bytes

Versions: 12

Compression:

Stored size: 361 Bytes

Contents

require 'spree/backend'

module Spree
  def self.admin_path
    Spree::Backend::Config[:admin_path]
  end

  # Used to configure admin_path for Spree
  #
  # Example:
  #
  # write the following line in `config/initializers/spree.rb`
  #   Spree.admin_path = '/custom-path'

  def self.admin_path=(path)
    Spree::Backend::Config[:admin_path] = path
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
spree_backend-4.7.2 lib/spree_backend.rb
spree_backend-4.6.2 lib/spree_backend.rb
spree_backend-4.7.1 lib/spree_backend.rb
spree_backend-4.7.0 lib/spree_backend.rb
spree_backend-4.6.1 lib/spree_backend.rb
spree_backend-4.6.0 lib/spree_backend.rb
spree_backend-4.5.1 lib/spree_backend.rb
spree_backend-4.5.0 lib/spree_backend.rb
spree_backend-4.4.1 lib/spree_backend.rb
spree_backend-4.4.0 lib/spree_backend.rb
spree_backend-4.4.0.rc2 lib/spree_backend.rb
spree_backend-4.4.0.rc1 lib/spree_backend.rb