Skip to content
This repository has been archived by the owner on Nov 29, 2017. It is now read-only.

Commit

Permalink
Fixed situation when current user is nil
Browse files Browse the repository at this point in the history
  • Loading branch information
njlxyaoxinwei committed Oct 24, 2014
1 parent 2dec763 commit 0882832
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/application_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def using_CAS?
end

def user_for_paper_trail
current_user.name
current_user.name if current_user
end

protected
Expand Down

0 comments on commit 0882832

Please sign in to comment.