Skip to content

Commit

Permalink
more limits on Activities
Browse files Browse the repository at this point in the history
  • Loading branch information
d1rk committed Mar 8, 2013
1 parent 991fdc2 commit 35c71ae
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion models/Activities.php
Expand Up @@ -14,12 +14,13 @@ class Activities extends \lithium\data\Model {
*/
public $_finders = array(
'latest' => array(
'limit' => 250,
'fields' => array('created', 'type', 'message'),
),
);

protected $_query = array(
'order' => array('created' => 'DESC'),
'limit' => 250,
);

/**
Expand Down

0 comments on commit 35c71ae

Please sign in to comment.