Sha256: 1be84183b29f69457bb07775dacd8ada1c2275550e6c9ae22476674e5ce5df23

Contents?: true

Size: 1.1 KB

Versions: 140

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

140 entries across 140 versions & 1 rubygems

Version Path
alchemy_cms-5.1.4 lib/alchemy/paths.rb
alchemy_cms-5.0.4 lib/alchemy/paths.rb
alchemy_cms-5.1.3 lib/alchemy/paths.rb
alchemy_cms-5.2.0 lib/alchemy/paths.rb
alchemy_cms-5.2.0.rc1 lib/alchemy/paths.rb
alchemy_cms-5.2.0.b1 lib/alchemy/paths.rb
alchemy_cms-5.1.2 lib/alchemy/paths.rb
alchemy_cms-5.1.1 lib/alchemy/paths.rb
alchemy_cms-5.0.3 lib/alchemy/paths.rb
alchemy_cms-5.1.0 lib/alchemy/paths.rb
alchemy_cms-5.0.2 lib/alchemy/paths.rb
alchemy_cms-5.1.0.rc1 lib/alchemy/paths.rb
alchemy_cms-5.1.0.beta2 lib/alchemy/paths.rb
alchemy_cms-5.1.0.beta1 lib/alchemy/paths.rb
alchemy_cms-5.0.1 lib/alchemy/paths.rb
alchemy_cms-5.0.0 lib/alchemy/paths.rb
alchemy_cms-5.0.0.rc2 lib/alchemy/paths.rb
alchemy_cms-5.0.0.rc1 lib/alchemy/paths.rb
alchemy_cms-5.0.0.beta2 lib/alchemy/paths.rb
alchemy_cms-5.0.0.beta1 lib/alchemy/paths.rb