This repository has been archived by the owner on Mar 27, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Return to deep_transform_keys so that site_key is camelized
- Loading branch information
Showing
1 changed file
with
5 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,11 +7,12 @@ def global_config | |
default_currency: Settings.default_currency, | ||
facebook: Settings.facebook.to_hash.slice(:pixel_id), | ||
recaptcha3: Settings.recaptcha3.to_hash.slice(:site_key), | ||
recaptcha2: Settings.recaptcha2.to_hash.slice(:site_key), | ||
eoy_thermometer: eoy_thermometer_config | ||
}.transform_keys! do |key| | ||
recaptcha2: Settings.recaptcha2.to_hash.slice(:site_key) | ||
}.deep_transform_keys! do |key| | ||
key.to_s.camelize(:lower) | ||
end | ||
end.merge( | ||
eoyThermometer: eoy_thermometer_config | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
osahyoun
via email
Author
Member
|
||
) | ||
end | ||
|
||
def eoy_thermometer_config | ||
|
Was this what made it break? Isn't the
site_key
just a string, so it shouldn't matter whether you deep transform keys or just transform the top level keys? This is what we speculated with Vince at least. On my eoy branch, recaptcha works fine withtransform_keys!
called instead ofdeep_transform_keys
- so are you sure this is what breaks it?