Skip to content

Commit

Permalink
update sequelize
Browse files Browse the repository at this point in the history
  • Loading branch information
dgf committed Dec 13, 2013
1 parent 7af257c commit bb5f204
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
7 changes: 5 additions & 2 deletions lib/crudl.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
@@ -1,6 +1,6 @@
{
"name": "crudl-model"
, "version": "0.1.2"
, "version": "0.1.3"
, "author": "Danny Gräf <github@dagnu.de>"

, "keywords": ["Sequelize", "ORM", "CRUD", "coffeescript"]
Expand All @@ -23,7 +23,7 @@
, "devDependencies": {
"ajsh": "0.1.x"
, "jasmine-node": "1.11.x"
, "sequelize": "1.5.x"
, "sequelize": "1.7.x"
, "sqlite3": "2.1.x"
}

Expand Down
4 changes: 2 additions & 2 deletions src/crudl.coffee
Expand Up @@ -17,7 +17,7 @@ class Crudl
onError 'empty find query'

findAll = (model, options, onSuccess, onError)->
model.all(options).error(onError).success (instances) ->
model.findAll(options).error(onError).success (instances) ->
onSuccess _.toArray(instances)

rawQuery = (model, query, onSuccess, onError) ->
Expand Down Expand Up @@ -55,7 +55,7 @@ class Crudl

# list all instances
all: (onSuccess, onError) ->
findAll @model, null, onSuccess, onError
findAll @model, {}, onSuccess, onError

# list instances
list: (options, onSuccess, onError) ->
Expand Down

0 comments on commit bb5f204

Please sign in to comment.