Sha256: c12dece392df578cb8fc3aff8e2f7da8f714f1e228fddf91b74fecdfe78eacef

Contents?: true

Size: 496 Bytes

Versions: 10

Compression:

Stored size: 496 Bytes

Contents

module Kadmin
  class Configuration
    # @return [Logger] An instance of a Ruby compatible logger
    attr_accessor :logger

    # @return [String] the path the engine is mounted at (used for authentication routes)
    attr_accessor :mount_path

    # @return [Array<Hash<Symbol, String>] list of admin links, format: { title: '', path: '' }
    attr_accessor :navbar_links

    def initialize
      @mount_path = '/admin'
      @logger = Rails.logger
      @navbar_links = []
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
kadmin-0.3.1 lib/kadmin/configuration.rb
kadmin-0.3.0 lib/kadmin/configuration.rb
kadmin-0.2.8 lib/kadmin/configuration.rb
kadmin-0.2.7 lib/kadmin/configuration.rb
kadmin-0.2.6 lib/kadmin/configuration.rb
kadmin-0.2.3 lib/kadmin/configuration.rb
kadmin-0.2.2 lib/kadmin/configuration.rb
kadmin-0.1.7 lib/kadmin/configuration.rb
kadmin-0.1.6 lib/kadmin/configuration.rb
kadmin-0.1.4 lib/kadmin/configuration.rb