lib/express_admin.rb in express_admin-1.7.31 vs lib/express_admin.rb in express_admin-1.7.32
- old
+ new
@@ -1,8 +1,13 @@
require File.join(File.dirname(__FILE__), "core_extensions/string_promptify")
require "express_admin/engine"
require "express_admin/routes"
require "express_admin/commands"
require "express_admin/commandable"
+require "express_admin/current_user"
module ExpressAdmin
+ def self.initialize_current_user!
+ ActionController::Base::send(:include, ExpressAdmin::CurrentUser)
+ puts "Added ExpressAdmin::CurrentUser to ActionController::Base"
+ end
end