Skip to content

Commit

Permalink
Don't use _ global in core hook since it can be turned off
Browse files Browse the repository at this point in the history
(Or do `var _ = require('lodash');`)
  • Loading branch information
sgress454 committed Aug 6, 2014
1 parent 42a0aaf commit 008ce3a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/hooks/orm/backwards-compatibility/upgrade-datastore.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ module.exports = function howto_normalizeDatastore(sails){
// Defaults connection object to its adapter's defaults
// TODO: pull this out into waterline core
var itsAdapter = sails.adapters[connectionObject.adapter];
connection = _.merge({}, itsAdapter.defaults, connectionObject);
connection = sails.util.merge({}, itsAdapter.defaults, connectionObject);

// If the adapter has a `registerCollection` method, it must be a v0.9.x adapter
if (itsAdapter.registerCollection) {
Expand Down

0 comments on commit 008ce3a

Please sign in to comment.