Sha256: 6ba5c0373d7d4115dba2d8d7b44dc3c429d82464524cd8c4dd0b0a4fabb1349a

Contents?: true

Size: 415 Bytes

Versions: 46

Compression:

Stored size: 415 Bytes

Contents

# Core
require 'kadmin/configuration'
require 'kadmin/error'
require 'kadmin/auth'
require 'kadmin/presenter'
require 'kadmin/presentable'

# Rails
require 'kadmin/engine'

module Kadmin
  class << self
    delegate :logger, :logger=, to: :config

    def config
      return @config ||= Kadmin::Configuration.new
    end

    def configure
      yield(config) if block_given?
      return config
    end
  end
end

Version data entries

46 entries across 46 versions & 1 rubygems

Version Path
kadmin-1.3.0 lib/kadmin.rb
kadmin-1.2.1 lib/kadmin.rb
kadmin-1.2.0 lib/kadmin.rb
kadmin-1.1.1 lib/kadmin.rb
kadmin-1.1.0 lib/kadmin.rb
kadmin-1.0.9 lib/kadmin.rb
kadmin-1.0.8 lib/kadmin.rb
kadmin-1.0.7 lib/kadmin.rb
kadmin-1.0.6 lib/kadmin.rb
kadmin-1.0.5 lib/kadmin.rb
kadmin-1.0.4 lib/kadmin.rb
kadmin-1.0.3 lib/kadmin.rb
kadmin-1.0.2 lib/kadmin.rb
kadmin-1.0.1 lib/kadmin.rb
kadmin-1.0.0 lib/kadmin.rb
kadmin-0.9.5 lib/kadmin.rb
kadmin-0.9.4 lib/kadmin.rb
kadmin-0.8.0 lib/kadmin.rb
kadmin-0.7.5 lib/kadmin.rb
kadmin-0.7.4 lib/kadmin.rb