Skip to content
Browse files

fixed a bug where it would not load more entries if the state was given

  • Loading branch information...
1 parent 5b2e22d commit 6f8bdb7b947f9cf48784f8d1df760a59e0b02852 @jpbougie committed Jun 4, 2009
Showing with 4 additions and 0 deletions.
  1. +4 −0 application.rb
View
4 application.rb
@@ -106,6 +106,10 @@ def accepted
def load
if params.has_key? :state
entries = Entry.all(:state => params[:state])
+
+ if params[:state] == "new" and entries.length < 50
+ more
+ end
else
entries = Entry.all(:state => :new)

0 comments on commit 6f8bdb7

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