lib/hyper_admin.rb in hyper_admin-0.1.0 vs lib/hyper_admin.rb in hyper_admin-0.2.0
- old
+ new
@@ -1,4 +1,22 @@
+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