Closed starrychloe closed 5 years ago
Hi,
This message has been communicated to the team and we will try to adhere to the conventions of the language as much as possible.
As per our analysis, the solution for the above is, we need to write the code in below fashion with Brackets.
setting=SettingType.new (settingName = SettingNameEnum::HostedProfileReturnUrl, settingValue = https://returnurl.com/return/)
Instead of specifying every attribute on a separate line, like
Use standard Ruby syntax to specify the attributes of the object when creating it like
If you try this, then you get an error
It's like it's turning the hash into a string and using that as a
settingName
.Also it's convention to use snake_case for variables like
setting_name
instead ofsettingName
, but I don't care about that.