Skip to content

Commit 5f6d137

Browse files
Merge pull request #2968 from kennstenicht/update-readme
Remove this.get use from readme
2 parents c2c1d1e + 96df626 commit 5f6d137

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ __[![Discord](https://img.shields.io/discord/480462759797063690.svg?logo=discord
1313
> Ember Simple Auth was written and is maintained by [Mainmatter](https://mainmatter.com) and contributors.
1414
> We offer consulting, training, and team augmentation for Ember.js – check out our [website](https://mainmatter.com/ember-consulting/) to learn more!
1515
16-
# Ember Simple Auth
16+
# Ember Simple Auth
1717

1818
![Logo](http://ember-simple-auth.com/images/logo.png)
1919

@@ -351,7 +351,7 @@ export default class LoginRoute extends Route {
351351
@service session;
352352

353353
beforeModel(transition) {
354-
this.get('session').prohibitAuthentication('index');
354+
this.session.prohibitAuthentication('index');
355355
}
356356
}
357357
```
@@ -678,7 +678,7 @@ export default class IndexRoute extends Route {
678678
@service session;
679679

680680
beforeModel(transition) {
681-
this.get('session').requireAuthentication(transition, () => this.transitionToExternal('login'));
681+
this.session.requireAuthentication(transition, () => this.transitionToExternal('login'));
682682
},
683683
}
684684
```

0 commit comments

Comments
 (0)