Permalink
Browse files

fix Database.prototype.replicate()

- should use this.name instead of name
  • Loading branch information...
klaemo committed Mar 23, 2012
1 parent cbfb468 commit 1466a024f86a0bb6741bbe41c4e9be9a3add16a9
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/cradle/database/index.js
@@ -31,7 +31,7 @@ Database.prototype.exists = function (callback) {
Database.prototype.replicate = function (target, options, callback) {
if (typeof(options) === 'function') { callback = options, options = {} }
- this.connection.replicate(cradle.merge({ source: name, target: target }, options), callback);
+ this.connection.replicate(cradle.merge({ source: this.name, target: target }, options), callback);
};
Database.prototype.info = function (callback) {

0 comments on commit 1466a02

Please sign in to comment.