Skip to content

Use consistent style in "importmap.assets" initializer #76

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

Merged

Conversation

rmacklin
Copy link
Contributor

While working on #61, I noticed a minor style inconsistency between the "importmap.assets" initializer and the rest of the initializers declared in lib/importmap/engine.rb: That one directly references Rails.application while the others use the app block variable (which makes the code a bit more concise). So this PR is nothing groundbreaking; it just makes them consistent.

To be more concise and consistent with the other initializers, let's use
the `app` block variable rather than referencing `Rails.application`.
@dhh dhh merged commit 2d86140 into rails:main Nov 23, 2021
@rmacklin rmacklin deleted the make-assets-initializer-use-consistent-style branch November 23, 2021 18:24
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.

2 participants