Commit 5663f7a1 authored by Ash McKenzie's avatar Ash McKenzie

Actor::Base#label now describes the class nicely

parent 2bdf08e7
...@@ -36,7 +36,7 @@ module Actor ...@@ -36,7 +36,7 @@ module Actor
end end
def log_username def log_username
audit_usernames? ? username : "#{klass_name.downcase} with identifier #{identifier}" audit_usernames? ? username : "#{label} with identifier #{identifier}"
end end
private private
...@@ -47,6 +47,10 @@ module Actor ...@@ -47,6 +47,10 @@ module Actor
self.class.to_s.split('::')[-1] self.class.to_s.split('::')[-1]
end end
def label
klass_name.downcase
end
def audit_usernames? def audit_usernames?
audit_usernames audit_usernames
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment