Skip to content

Commit

Permalink
Fix [ember-debug.deprecate-options-missing] on rejectWithXhr deprecat…
Browse files Browse the repository at this point in the history
…ionAlias (#1170)
  • Loading branch information
davelowensohn authored and marcoow committed Jan 10, 2017
1 parent b67d965 commit 0ee3373
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion addon/authenticators/devise.js
Expand Up @@ -78,7 +78,10 @@ export default BaseAuthenticator.extend({
@deprecated DeviseAuthenticator/rejectWithResponse:property
@public
*/
rejectWithXhr: computed.deprecatingAlias('rejectWithResponse'),
rejectWithXhr: computed.deprecatingAlias('rejectWithResponse', {
id: `ember-simple-auth.authenticator.reject-with-xhr`,
until: '2.0.0'
}),

/**
When authentication fails, the rejection callback is provided with the whole
Expand Down
5 changes: 4 additions & 1 deletion addon/authenticators/oauth2-password-grant.js
Expand Up @@ -141,7 +141,10 @@ export default BaseAuthenticator.extend({
@deprecated OAuth2PasswordGrantAuthenticator/rejectWithResponse:property
@public
*/
rejectWithXhr: computed.deprecatingAlias('rejectWithResponse'),
rejectWithXhr: computed.deprecatingAlias('rejectWithResponse', {
id: `ember-simple-auth.authenticator.reject-with-xhr`,
until: '2.0.0'
}),

/**
When authentication fails, the rejection callback is provided with the whole
Expand Down

0 comments on commit 0ee3373

Please sign in to comment.