Skip to content
Browse files

...

  • Loading branch information...
1 parent 2e9368d commit c6910946419314019ea6312998301813bb858d27 @iamryo committed Dec 3, 2011
View
4 app/controllers/stories_controller.rb
@@ -2,7 +2,7 @@ class StoriesController < ApplicationController
before_filter :login_required, :only => [ :new, :create ]
- def index
+ def index
fetch_stories 'votes_count >= 5'
end
@@ -33,7 +33,7 @@ def show
def fetch_stories(conditions)
@stories = Story.find :all,
:order => 'id DESC',
- :conditions => 'votes_count < 5'
+ :conditions => conditions
end
end
View
BIN db/development.sqlite3
Binary file not shown.
View
BIN db/test.sqlite3
Binary file not shown.

0 comments on commit c691094

Please sign in to comment.
Something went wrong with that request. Please try again.