1
0
Fork 0
mirror of https://github.com/varvet/pundit.git synced 2022-11-09 12:30:11 -05:00

Hide authorize and verify_authorized, closes #23

This commit is contained in:
Jonas Nicklas 2013-03-28 17:26:24 +01:00
parent 7a1805466f
commit 12292f151f

View file

@ -35,6 +35,10 @@ module Pundit
helper_method :policy_scope
helper_method :policy
end
if respond_to?(:hide_action)
hide_action :authorize
hide_action :verify_authorized
end
end
def verify_authorized