Permalink
Browse files

changing stuff around

  • Loading branch information...
1 parent 8e8c817 commit d007e986beacbbcd5ef363c6f76dd20ec4e605b8 @benjreinhart benjreinhart committed Mar 18, 2013
Showing with 11 additions and 11 deletions.
  1. +11 −11 core/db/examiner.coffee
View
@@ -3,16 +3,16 @@
User = require "#{ APP_ROOT }/components/users/datastore"
Edit = require "#{ APP_ROOT }/components/edits/datastore"
-users = ->
- User.find (_, users) ->
- console.log users
- process.exit 0
+{
-edits = ->
- Edit.find (_, edits) ->
- console.log edits
- process.exit 0
+ users: ->
+ User.find (_, users) ->
+ console.log users
+ process.exit 0
-switch RESOURCE
- when 'users' then users()
- when 'edits' then edits()
+ edits: ->
+ Edit.find (_, edits) ->
+ console.log edits
+ process.exit 0
+
+}[RESOURCE]()

0 comments on commit d007e98

Please sign in to comment.