Skip to content

Commit

Permalink
hotfix(model): Fixed issue where it would only list one model in list…
Browse files Browse the repository at this point in the history
…Action of controller
  • Loading branch information
pilsy committed Jun 13, 2014
1 parent 2ee7984 commit aef8574
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/classes/Model.js
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ module.exports = Class.extend(
if ( modelType === 'ORM' ) {

that._model
.find( { where: options } )
.findAll( { where: options } )
.success( that.callback( callback, null ) )
.error( callback );

Expand Down

0 comments on commit aef8574

Please sign in to comment.