diff options
author | Matthew Landauer <matthew@openaustralia.org> | 2013-03-01 15:12:26 +1100 |
---|---|---|
committer | Matthew Landauer <matthew@openaustralia.org> | 2013-03-02 14:49:14 +1100 |
commit | e55dfcf46e2b3821a9b0d6d796b5dbf50875dd24 (patch) | |
tree | 7649ec563f01174dee06bb4baafa1b896d7a27a7 | |
parent | 450c8e766c943cd212d706ae53768f2bae563c67 (diff) |
Simplify methods
-rw-r--r-- | app/models/info_request_event.rb | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/app/models/info_request_event.rb b/app/models/info_request_event.rb index 09eba31ab..024ae97a1 100644 --- a/app/models/info_request_event.rb +++ b/app/models/info_request_event.rb @@ -363,16 +363,11 @@ class InfoRequestEvent < ActiveRecord::Base end def is_sent_sort? - if [ 'sent', 'resent'].include?(self.event_type) - return true - end - return false + ['sent', 'resent'].include?(event_type) end + def is_followup_sort? - if [ 'followup_sent', 'followup_resent'].include?(self.event_type) - return true - end - return false + ['followup_sent', 'followup_resent'].include?(event_type) end def same_email_as_previous_send? |