Skip to content

Commit

Permalink
limit gallery to 50
Browse files Browse the repository at this point in the history
  • Loading branch information
jfontan committed Nov 17, 2011
1 parent b68ad09 commit c56c31a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion server/main.rb
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,10 @@ def save_version(code_id, code)
end

get '/' do
effects=CODE.find({}, {:sort => [:modified_at, 'descending']})
effects=CODE.find({}, {
:sort => [:modified_at, 'descending'],
:limit => 50
})

ef=Effects.new(effects)

Expand Down

0 comments on commit c56c31a

Please sign in to comment.