Skip to content
Browse files

add __dirname to requires

  • Loading branch information...
1 parent d21c5ab commit 78fcd7d34dbb08d4680b9143396bdb6e0ae593df @tblobaum committed
Showing with 3 additions and 3 deletions.
  1. +1 −1 LICENSE
  2. +2 −2 lib/rest.js
View
2 LICENSE
@@ -1,6 +1,6 @@
(The MIT License)
-Copyright (c) 2011-2012 Tom Blobaum <tblobaum@gmail.com>
+Copyright (c) 2012 Thomas Blobaum <tblobaum@gmail.com>
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
View
4 lib/rest.js
@@ -7,7 +7,7 @@
// REST
// ----
-var dataToObjects = require('../helpers').dataToObjects
+var dataToObjects = require(__dirname +'/../helpers').dataToObjects
function rest (schema, options) {
options = options || {}
@@ -25,7 +25,7 @@ function rest (schema, options) {
})
if (!schema.statics.paginate) {
- schema.plugin(require('./pagination'), pagination)
+ schema.plugin(require(__dirname +'/pagination'), pagination)
}
function get (id, fn) {

0 comments on commit 78fcd7d

Please sign in to comment.
Something went wrong with that request. Please try again.