Sha256: 09b618e68e20bb56eba4150dfb95410b98e119b9a565c2b122fa2779c52e62b8

Contents?: true

Size: 385 Bytes

Versions: 1

Compression:

Stored size: 385 Bytes

Contents

require 'jquery-rails'

require 'hyper_admin/engine'
require 'hyper_admin/application'

module HyperAdmin
  class << self

    delegate :register, to: :application
    delegate :routes,   to: :application
    delegate :setup,    to: :application

    def application
      @application ||= HyperAdmin::Application.new
    end

    def config
      application.setup
    end

  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
hyper_admin-0.2.0 lib/hyper_admin.rb