diff --git a/lib/application.js b/lib/application.js index 64f5ea68..5669d551 100644 --- a/lib/application.js +++ b/lib/application.js @@ -8,7 +8,8 @@ var assert = require('assert'); var fs = require('fs'); var extend = require('util')._extend; var RemoteObjects = require('strong-remoting'); -var stringUtils = require('underscore.string'); +var classify = require('underscore.string/classify'); +var camelize = require('underscore.string/camelize'); var path = require('path'); /** @@ -361,14 +362,6 @@ app.boot = function(options) { '`app.boot` was removed, use the new module loopback-boot instead'); }; -function classify(str) { - return stringUtils.classify(str); -} - -function camelize(str) { - return stringUtils.camelize(str); -} - function dataSourcesFromConfig(config, connectorRegistry) { var connectorPath; diff --git a/lib/model.js b/lib/model.js index 0dffcd7b..49869e7f 100644 --- a/lib/model.js +++ b/lib/model.js @@ -6,7 +6,6 @@ var assert = require('assert'); var RemoteObjects = require('strong-remoting'); var SharedClass = require('strong-remoting').SharedClass; var extend = require('util')._extend; -var stringUtils = require('underscore.string'); /** * The base class for **all models**.