lib/godmin/authorization.rb in godmin-2.2.2 vs lib/godmin/authorization.rb in godmin-2.3.0

- old
+ new

@@ -3,10 +3,10 @@ module Godmin module Authorization extend ActiveSupport::Concern - include Pundit + include Pundit::Authorization included do rescue_from Pundit::NotAuthorizedError do render plain: "You are not authorized to do this", status: 403, layout: "godmin/login" end