diff options
author | Henare Degan <henare.degan@gmail.com> | 2015-04-21 17:14:19 +1000 |
---|---|---|
committer | Henare Degan <henare.degan@gmail.com> | 2015-04-21 17:14:19 +1000 |
commit | aeec6559e560da8bd32778888aaf1aab63ec4118 (patch) | |
tree | 259ffa1a2d0f8fef94e98f41a6101197b8b9f9ef /app/controllers/admin_general_controller.rb | |
parent | 5fce972f8d70ad036f35008c31511f32b10c87e1 (diff) |
Simplify query
Diffstat (limited to 'app/controllers/admin_general_controller.rb')
-rw-r--r-- | app/controllers/admin_general_controller.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/app/controllers/admin_general_controller.rb b/app/controllers/admin_general_controller.rb index f2414eeab..78f1fcea4 100644 --- a/app/controllers/admin_general_controller.rb +++ b/app/controllers/admin_general_controller.rb @@ -23,8 +23,7 @@ class AdminGeneralController < AdminController @requires_admin_requests = InfoRequest.find_in_state('requires_admin') @error_message_requests = InfoRequest.find_in_state('error_message') @attention_requests = InfoRequest.find_in_state('attention_requested') - @blank_contacts = PublicBody.find(:all, :conditions => ["request_email = ''"], - :order => "updated_at") + @blank_contacts = PublicBody.where(:request_email => "").order(:updated_at) @old_unclassified = InfoRequest.find_old_unclassified(:limit => 20, :conditions => ["prominence = 'normal'"]) @holding_pen_messages = InfoRequest.holding_pen_request.incoming_messages |