Story #109367694 - refactor user log string to user for paper trail creator_str

This commit is contained in:
Matt Farnsworth 2015-12-03 18:29:02 +02:00
parent ac04a94b6a
commit 18c643ee8d
2 changed files with 6 additions and 2 deletions

View file

@ -67,8 +67,7 @@ class ApplicationController < ActionController::Base
end
def user_log_str(user)
return 'public' if user.nil?
"#{user.id}-#{user.class}: #{user.username}"
user.nil? ? 'public' : user.string
end
def comma_support_for(parent_key, key)