aboutsummaryrefslogtreecommitdiffstats
path: root/app/models/info_request.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/models/info_request.rb')
-rw-r--r--app/models/info_request.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/models/info_request.rb b/app/models/info_request.rb
index 4951ea3b8..b1a5c905c 100644
--- a/app/models/info_request.rb
+++ b/app/models/info_request.rb
@@ -715,7 +715,7 @@ public
end
def response_events
- self.info_request_events.select{|e| e.event_type == 'response'}
+ self.info_request_events.select{|e| e.response?}
end
# The last response is the default one people might want to reply to
@@ -730,7 +730,7 @@ public
end
def outgoing_events
- info_request_events.select{|e| [ 'sent', 'followup_sent' ].include?(e.event_type) }
+ info_request_events.select{|e| e.outgoing? }
end
# The last outgoing message