diff options
Diffstat (limited to 'app')
-rw-r--r-- | app/models/agent.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/app/models/agent.rb b/app/models/agent.rb index 28ba579..e44c6ec 100644 --- a/app/models/agent.rb +++ b/app/models/agent.rb @@ -17,4 +17,10 @@ class Agent < ApplicationRecord def to_s name end + + # Syntactic sugar -- but they're really members. + def users + Rails.logger.warn "Calling `Agent#users`! You should be using `Agent#members` instead." + members + end end |