From c9fdf49ccaeafdd5bc858485815a133f82159a7f Mon Sep 17 00:00:00 2001 From: Nico Mihalich Date: Thu, 18 Aug 2016 17:00:06 -0400 Subject: [PATCH] Revert service injection --- addon/mixin.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/addon/mixin.js b/addon/mixin.js index 20b71fdb..2fa174f2 100644 --- a/addon/mixin.js +++ b/addon/mixin.js @@ -11,7 +11,6 @@ const { computed, computed: { alias, not }, get, - inject: { service }, isArray, isNone, isPresent, @@ -44,7 +43,7 @@ const pushValidatableObject = function(model, property) { const lookupValidator = function(validatorName) { let owner = getOwner(this); - let service = get(this, 'validationService'); + let service = owner.lookup('service:validations'); let validators = []; let cache; @@ -105,7 +104,6 @@ const ArrayValidatorProxy = ArrayProxy.extend(setValidityMixin, { }); export default Mixin.create(setValidityMixin, { - validationService: service('validations'), init() { this._super(...arguments);