Sha256: 0f31e15f0123b0bc2e2a98ddec87198646a34061757366a5b4e4f266e5e74c58

Contents?: true

Size: 1.1 KB

Versions: 30

Compression:

Stored size: 1.1 KB

Contents

# frozen_string_literal: true

# Provides admin interface routing configuration accessors.
#
# Alchemy has some defaults for admin path and admin constraints:
#
# +Alchemy.admin_path defaults to +'admin'+
# +Alchemy.admin_constraints defaults to +{}+
#
# Anyway, you can tell Alchemy about your routing configuration:
#
#   1. The path to the admin panel - @see: Alchemy.admin_path
#   2. The constraints for the admin panel (like subdomain) - @see: Alchemy.admin_constraints
#
# A word of caution: you need to know what you are doing if you set admin_path to ''. This can cause
# routing name clashes, e.g. a page named 'dashboard' will clash with the Alchemy dashboard.
#
# == Example
#
# If you do not wish to use the default admin interface routing ('example.com/admin')
# and prefer e.g. 'hidden.example.com/backend', those are the settings you need:
#
#     # config/initializers/alchemy.rb
#     Alchemy.admin_path = 'backend'
#     Alchemy.admin_constraints = {subdomain: 'hidden'}
#
module Alchemy
  mattr_accessor :admin_path, :admin_constraints

  # Defaults
  #
  @@admin_path = 'admin'
  @@admin_constraints = {}
end

Version data entries

30 entries across 30 versions & 1 rubygems

Version Path
alchemy_cms-4.6.7 lib/alchemy/paths.rb
alchemy_cms-4.6.6 lib/alchemy/paths.rb
alchemy_cms-4.6.5 lib/alchemy/paths.rb
alchemy_cms-4.5.1 lib/alchemy/paths.rb
alchemy_cms-4.4.5 lib/alchemy/paths.rb
alchemy_cms-4.6.4 lib/alchemy/paths.rb
alchemy_cms-4.6.3 lib/alchemy/paths.rb
alchemy_cms-4.6.2 lib/alchemy/paths.rb
alchemy_cms-4.6.1 lib/alchemy/paths.rb
alchemy_cms-4.6.0 lib/alchemy/paths.rb
alchemy_cms-4.5.0 lib/alchemy/paths.rb
alchemy_cms-4.4.4 lib/alchemy/paths.rb
alchemy_cms-4.4.3 lib/alchemy/paths.rb
alchemy_cms-4.4.2 lib/alchemy/paths.rb
alchemy_cms-4.4.1 lib/alchemy/paths.rb
alchemy_cms-4.4.0 lib/alchemy/paths.rb
alchemy_cms-4.3.2 lib/alchemy/paths.rb
alchemy_cms-4.2.4 lib/alchemy/paths.rb
alchemy_cms-4.3.1 lib/alchemy/paths.rb
alchemy_cms-4.2.3 lib/alchemy/paths.rb