Permalink
Browse files

more limits on Activities

  • Loading branch information...
1 parent 991fdc2 commit 35c71aec2a9183b0323ae68dccc4db24a1fc81cb @d1rk d1rk committed Mar 8, 2013
Showing with 2 additions and 1 deletion.
  1. +2 −1 models/Activities.php
View
@@ -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,
);
/**

0 comments on commit 35c71ae

Please sign in to comment.