summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/actor/base.rb6
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