diff options
author | Ash McKenzie <amckenzie@gitlab.com> | 2018-08-01 13:49:15 +1000 |
---|---|---|
committer | Ash McKenzie <amckenzie@gitlab.com> | 2018-08-01 15:08:45 +1000 |
commit | 5663f7a16f210bdcd6f0f884c790670fd8a9549f (patch) | |
tree | e2d92e37d38d20808c4e75d569ba9dd5fbab014e | |
parent | 2bdf08e732ad5d959bfebd222e58a7cd4a4971eb (diff) | |
download | gitlab-shell-5663f7a16f210bdcd6f0f884c790670fd8a9549f.tar.gz |
Actor::Base#label now describes the class nicely
-rw-r--r-- | lib/actor/base.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/actor/base.rb b/lib/actor/base.rb index 319873f..0b5b5c3 100644 --- a/lib/actor/base.rb +++ b/lib/actor/base.rb @@ -36,7 +36,7 @@ module Actor end def log_username - audit_usernames? ? username : "#{klass_name.downcase} with identifier #{identifier}" + audit_usernames? ? username : "#{label} with identifier #{identifier}" end private @@ -47,6 +47,10 @@ module Actor self.class.to_s.split('::')[-1] end + def label + klass_name.downcase + end + def audit_usernames? audit_usernames end |