From e381c2873a5786555dca8ebb89dac74ccdc32ca1 Mon Sep 17 00:00:00 2001 From: Aaron Chambers Date: Fri, 2 Feb 2024 15:53:37 +0000 Subject: [PATCH 1/2] Add feature for no-implicit-route-model --- features/no-implicit-route-model.js | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 features/no-implicit-route-model.js diff --git a/features/no-implicit-route-model.js b/features/no-implicit-route-model.js new file mode 100644 index 0000000..a034dde --- /dev/null +++ b/features/no-implicit-route-model.js @@ -0,0 +1,9 @@ +/* eslint-disable no-console */ +'use strict'; + +module.exports = { + description: `Removes the default record loading behaviour on Ember's Route.`, + url: 'https://github.com/emberjs/rfcs/pull/774', + default: false, + since: '5.8.0', +}; From eb959b0fe420a5ec06a43fd87a6d5916b74f0d8a Mon Sep 17 00:00:00 2001 From: NullVoxPopuli <199018+NullVoxPopuli@users.noreply.github.com> Date: Fri, 2 Feb 2024 14:49:52 -0500 Subject: [PATCH 2/2] Add a test ensuring that the new feature is transformed correctly to EmberENV --- tests/optional-features-test.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/optional-features-test.js b/tests/optional-features-test.js index 5155547..7744178 100644 --- a/tests/optional-features-test.js +++ b/tests/optional-features-test.js @@ -82,6 +82,7 @@ QUnit.module('@ember/optional-features', (hooks) => { 'application-template-wrapper': false, 'template-only-glimmer-components': true, 'jquery-integration': true, + 'no-implicit-route-model': false, }); let expected = { @@ -89,6 +90,7 @@ QUnit.module('@ember/optional-features', (hooks) => { _APPLICATION_TEMPLATE_WRAPPER: false, _TEMPLATE_ONLY_GLIMMER_COMPONENTS: true, _JQUERY_INTEGRATION: true, + _NO_IMPLICIT_ROUTE_MODEL: false, }, };