aboutsummaryrefslogtreecommitdiff
path: root/app/models/agent.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/models/agent.rb')
-rw-r--r--app/models/agent.rb6
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