lib/admin_it/controller.rb in admin_it-1.0.1 vs lib/admin_it/controller.rb in admin_it-1.0.2
- old
+ new
@@ -1,8 +1,10 @@
module AdminIt
module Controller
def self.included(base)
base.class_eval do
+ include Pundit if AdminIt::Env.pundit?
+
attr_reader :context
helper_method :context, :resource
helper AdminIt::Helpers
helper AdminIt::Engine.routes.url_helpers