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

Prevent install script from choking on magic comments via hard-coded line numbers #494

Merged
merged 1 commit into from
Apr 29, 2021

Conversation

leastbad
Copy link
Contributor

Type of PR (feature, enhancement, bug fix, etc.)

Bug fix

Description

Modify install script to add line on the first line after the Rails.application.configure block begins.

Fixes #429

Why should this be added

Hard-coded line numbers could break if a magic comment is added to the file.

Checklist

  • My code follows the style guidelines of this project
  • Checks (StandardRB & Prettier-Standard) are passing
  • This is not a documentation update

@leastbad leastbad changed the title no more hard coding lines in an rb file Prevent install script from choking on magic comments via hard-coded line numbers Apr 29, 2021
@julianrubisch
Copy link
Contributor

LGTM

@leastbad
Copy link
Contributor Author

LGTM

Let's go to Mars!

@leastbad leastbad merged commit 938ff49 into stimulusreflex:master Apr 29, 2021
@leastbad leastbad deleted the fix_install branch August 16, 2021 03:17
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.

Installer can insert session_store config in wrong place
2 participants