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:
parent
7a1805466f
commit
12292f151f
1 changed files with 4 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue