Skip to content
This repository was archived by the owner on Jan 31, 2019. It is now read-only.

Commit c9fdf49

Browse files
committed
Revert service injection
1 parent 394b254 commit c9fdf49

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

addon/mixin.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ const {
1111
computed,
1212
computed: { alias, not },
1313
get,
14-
inject: { service },
1514
isArray,
1615
isNone,
1716
isPresent,
@@ -44,7 +43,7 @@ const pushValidatableObject = function(model, property) {
4443

4544
const lookupValidator = function(validatorName) {
4645
let owner = getOwner(this);
47-
let service = get(this, 'validationService');
46+
let service = owner.lookup('service:validations');
4847
let validators = [];
4948
let cache;
5049

@@ -105,7 +104,6 @@ const ArrayValidatorProxy = ArrayProxy.extend(setValidityMixin, {
105104
});
106105

107106
export default Mixin.create(setValidityMixin, {
108-
validationService: service('validations'),
109107

110108
init() {
111109
this._super(...arguments);

0 commit comments

Comments
 (0)