From d21d9b9dd10a1379ecb686e339992d7790e4bd61 Mon Sep 17 00:00:00 2001 From: Matthew Landauer Date: Wed, 17 Oct 2012 14:40:57 +1100 Subject: In number of requests shown on home page only include requests with normal prominence --- app/models/info_request.rb | 2 ++ 1 file changed, 2 insertions(+) (limited to 'app/models/info_request.rb') diff --git a/app/models/info_request.rb b/app/models/info_request.rb index d8c84fa9e..74a67b9d9 100644 --- a/app/models/info_request.rb +++ b/app/models/info_request.rb @@ -51,6 +51,8 @@ class InfoRequest < ActiveRecord::Base has_tag_string + named_scope :visible, :conditions => {:prominence => "normal"} + # user described state (also update in info_request_event, admin_request/edit.rhtml) validate :must_be_valid_state -- cgit v1.2.3