aboutsummaryrefslogtreecommitdiffstats
path: root/app/models/info_request.rb
diff options
context:
space:
mode:
authorMatthew Landauer <matthew@openaustralia.org>2012-10-17 14:40:57 +1100
committerMatthew Landauer <matthew@openaustralia.org>2012-10-17 14:51:59 +1100
commitd21d9b9dd10a1379ecb686e339992d7790e4bd61 (patch)
treeb1713f0ddffdee8a7cc5ce7059b3d9b588b26dbe /app/models/info_request.rb
parent871e2fda4fea4ada327031aaa30d2bbb5774956a (diff)
In number of requests shown on home page only include requests with normal prominence
Diffstat (limited to 'app/models/info_request.rb')
-rw-r--r--app/models/info_request.rb2
1 files changed, 2 insertions, 0 deletions
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