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
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
......
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