From 7c4fdfb4944e3c4f9729c86a0e8a9c445e51b688 Mon Sep 17 00:00:00 2001 From: Matthew Landauer Date: Fri, 1 Mar 2013 12:35:33 +1100 Subject: Inline method --- app/models/info_request.rb | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'app/models/info_request.rb') 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 -- cgit v1.2.3