Skip to content

Commit

Permalink
#12 Add searchable behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
amazeika committed Jan 11, 2017
1 parent 71839a5 commit cbeaec3
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions model/activities.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,12 @@ public function __construct(KObjectConfig $config)
$state->sort = 'created_on';
}

protected function _initialize(KObjectConfig $config)
{
$config->append(array('behaviors' => array('searchable')));
parent::_initialize($config);
}

/**
* Builds WHERE clause for the query.
*
Expand Down

0 comments on commit cbeaec3

Please sign in to comment.