From 3cfad4acd8d417883915c93bc53e64bb770cf1e6 Mon Sep 17 00:00:00 2001 From: Tony Miller Date: Wed, 24 Mar 2021 18:17:43 +0900 Subject: [PATCH] Update README.md It's not necessary to use `get` when accessing the session service in the example in the README. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 5d4d03d02..b6a67d462 100644 --- a/README.md +++ b/README.md @@ -252,7 +252,7 @@ export default class AuthenticatedRoute extends Route { @service session; beforeModel(transition) { - this.get('session').requireAuthentication(transition, 'login'); + this.session.requireAuthentication(transition, 'login'); } } ```