aboutsummaryrefslogtreecommitdiffstats
path: root/app/models/info_request.rb
diff options
context:
space:
mode:
authorMatthew Landauer <matthew@openaustralia.org>2013-03-01 12:35:33 +1100
committerMatthew Landauer <matthew@openaustralia.org>2013-03-02 14:49:13 +1100
commit7c4fdfb4944e3c4f9729c86a0e8a9c445e51b688 (patch)
tree59679cd3d0cf42373956df6b570a42e259311934 /app/models/info_request.rb
parent28574ebe161de15ae1fdee6745aaaa71491f6ca8 (diff)
Inline method
Diffstat (limited to 'app/models/info_request.rb')
-rw-r--r--app/models/info_request.rb7
1 files changed, 1 insertions, 6 deletions
diff --git a/app/models/info_request.rb b/app/models/info_request.rb
index cee9eb959..98b45af85 100644
--- a/app/models/info_request.rb
+++ b/app/models/info_request.rb
@@ -543,13 +543,8 @@ public
# states which require administrator action (hence email administrators
# when they are entered, and offer state change dialog to them)
- def InfoRequest.requires_admin_states
- return ['requires_admin', 'error_message', 'attention_requested']
- end
-
def requires_admin?
- return true if InfoRequest.requires_admin_states.include?(described_state)
- return false
+ ['requires_admin', 'error_message', 'attention_requested'].include?(described_state)
end
# change status, including for last event for later historical purposes