1
0
Fork 0
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:
Philip Vieira 2013-07-13 16:24:13 +02:00
parent d7ef22bb97
commit a847f782cd

View file

@ -69,6 +69,6 @@ module Pundit
end
def pundit_user
respond_to?(:current_user) ? current_user : nil
current_user
end
end