diff options
author | Matthew Landauer <matthew@openaustralia.org> | 2013-03-01 15:15:20 +1100 |
---|---|---|
committer | Matthew Landauer <matthew@openaustralia.org> | 2013-03-02 14:49:14 +1100 |
commit | 82f9d1f8618dd22bb7bb34456446ceaf8c742d54 (patch) | |
tree | 7ac655ca31986fd93e9c17f6b7efc4e8be38c8d8 /app/models/info_request.rb | |
parent | e55dfcf46e2b3821a9b0d6d796b5dbf50875dd24 (diff) |
InfoRequestEvent should know about its event types
Diffstat (limited to 'app/models/info_request.rb')
-rw-r--r-- | app/models/info_request.rb | 4 |
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 |