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

Fix database loading when ERB is single line ternary #36237

Merged

Conversation

eileencodes
Copy link
Member

sigh this seems like the never ending bug. I don't love or even like
this fix but it does work.

Rafael suggested using dummy_key: dummy_value but unfortunately
that doesn't work. So we're left with checking whethere there might be
ternary type things in the content and then assuming that we want to
replace the line with a key value pair.

Technically fixes #36088

cc/ @rafaelfranca @anamba @tenderlove @matthewd

*sigh* this seems like the never ending bug. I don't love or even like
this fix but it does _work_.

Rafael suggested using `dummy_key: dummy_value` but unfortunately
that doesn't work. So we're left with checking whethere there might be
ternary type things in the content and then assuming that we want to
replace the line with a key value pair.

Technically fixes rails#36088
@eileencodes eileencodes added this to the 6.0.0 milestone May 10, 2019
@rails-bot rails-bot bot added the railties label May 10, 2019
@eileencodes eileencodes merged commit bd0618b into rails:master May 14, 2019
@eileencodes eileencodes deleted the fix-erb-in-database-yaml-again branch May 14, 2019 07:29
vishaltelangre added a commit to vishaltelangre/rails that referenced this pull request May 15, 2019
eileencodes added a commit that referenced this pull request May 16, 2019
…gain

Fix database loading when ERB is single line ternary
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6.0.0.rc1 database.yml no longer supports arbitrary ERB output?
1 participant