diff options
author | Robert Speicher <rspeicher@gmail.com> | 2016-01-13 11:46:32 -0500 |
---|---|---|
committer | Robert Speicher <rspeicher@gmail.com> | 2016-01-13 11:49:59 -0500 |
commit | 843662821ddbf2d06aa2da72ce32717cebecb7c6 (patch) | |
tree | 6885e93e3e106f86102d8ac2641fb6e79116889a /app/models/broadcast_message.rb | |
parent | c13b5acb16c7813d6913e26cc7ae67f691f914d6 (diff) | |
download | gitlab-ce-843662821ddbf2d06aa2da72ce32717cebecb7c6.tar.gz |
Move `BroadcastMessage#status` to a helper since it's presentational
Diffstat (limited to 'app/models/broadcast_message.rb')
-rw-r--r-- | app/models/broadcast_message.rb | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/app/models/broadcast_message.rb b/app/models/broadcast_message.rb index 188545f9ae5..61119633717 100644 --- a/app/models/broadcast_message.rb +++ b/app/models/broadcast_message.rb @@ -40,14 +40,4 @@ class BroadcastMessage < ActiveRecord::Base def ended? ends_at < Time.zone.now end - - def status - if active? - 'Active' - elsif ended? - 'Expired' - else - 'Pending' - end - end end |