mirror of
https://github.com/varvet/pundit.git
synced 2022-11-09 12:30:11 -05:00
Let pundit_user raise a name error if current_user is not present.
This commit is contained in:
parent
d7ef22bb97
commit
a847f782cd
1 changed files with 1 additions and 1 deletions
|
@ -69,6 +69,6 @@ module Pundit
|
|||
end
|
||||
|
||||
def pundit_user
|
||||
respond_to?(:current_user) ? current_user : nil
|
||||
current_user
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue