Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add concerns for different namespacing options #774

Merged
merged 4 commits into from Mar 8, 2024

Conversation

gazayas
Copy link
Contributor

@gazayas gazayas commented Feb 14, 2024

Closes #511.

We have the following line in the RoutesFileManipulator.

add_concern(:sortable) if transformer_options["sortable"]

This doesn't cover all of the namespace options available though, so I pulled this out of the main if statement so it covers all situations. Now any concerns passed as options to the Super Scaffolding command should be scaffolded to the routes being generated.

Side Note

I added the GitHub Actions workflow so we can check the tests for Super Scaffolding here.

@jagthedrummer jagthedrummer merged commit 9f1826b into main Mar 8, 2024
30 checks passed
@jagthedrummer jagthedrummer deleted the fixes/sortable-with-namespaced-models branch March 8, 2024 21:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Namespaced route with super scaffolding is missing sortable routes
2 participants