Skip to content

Commit

Permalink
ActiveRecord::perform() - fixed action name generation for non-bulk r…
Browse files Browse the repository at this point in the history
…equests
  • Loading branch information
SilverFire committed Jan 15, 2016
1 parent b69881a commit 4d29513
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ActiveRecord.php
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,7 @@ protected function updateInternal($attributes = null, $options = [])
*/
public static function perform($action, $options = [], $bulk = false)
{
$action = ($bulk === true) ? static::index() . $action : static::modelName() . $action;
$action = ($bulk === true ? static::index() : static::type()) . $action;
$result = static::getDb()->createCommand()->perform($action, $options);

return $result;
Expand Down

0 comments on commit 4d29513

Please sign in to comment.