Permalink
Browse files

only show projects open for bids on home page

  • Loading branch information...
1 parent 21f156b commit fa1e0293fe747e2edf60377e0039ff9d1d81b20f @ajb ajb committed Apr 7, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 app/controllers/home_controller.rb
@@ -3,7 +3,7 @@ def index
@featured_projects = Project.posted.featured.order("RANDOM()").limit(3)
if @featured_projects.length < 3
- @featured_projects = @featured_projects + Project.posted.order("RANDOM()").limit(3 - @featured_projects.length)
+ @featured_projects = @featured_projects + Project.open_for_bids.posted.order("RANDOM()").limit(3 - @featured_projects.length)
end
end
end

0 comments on commit fa1e029

Please sign in to comment.