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

[SAGE-144]: Add NilClass to all optional props (Rails) #1577

Merged
merged 4 commits into from
Sep 8, 2022

Conversation

pixelflips
Copy link
Member

Description

When iterating through creating components within a loop in Rails optional properties benefit from including nil as a possible value. This way a default of nil can be provided while also allowing additional values to be set conditionally within the loop.

This PR adds NilClass to all optional props for the rails components.

Screenshots

No visual changes.

Testing in sage-lib

Check files changed and then try passing nil to any of the updated properties in a preview file

Testing in kajabi-products

  1. (LOW) Adds NilClass to all optional props. No effect is expected on KP.

Related

https://kajabi.atlassian.net/browse/SAGE-144

@pixelflips pixelflips self-assigned this Sep 6, 2022
@pixelflips pixelflips added improvement Improve on existing work ruby Pull requests that update Ruby code labels Sep 6, 2022
@pixelflips pixelflips marked this pull request as ready for review September 6, 2022 23:41
@pixelflips pixelflips requested review from philschanely and a team September 6, 2022 23:42
@pixelflips pixelflips requested a review from a team September 7, 2022 01:15
@ju-Skinner ju-Skinner requested a review from a team September 8, 2022 15:48
@pixelflips pixelflips force-pushed the SAGE-144_pl-nil-on-optional-props-rails branch from 8a477b8 to 3db65a2 Compare September 8, 2022 15:51
@pixelflips pixelflips merged commit 97f36ca into develop Sep 8, 2022
@pixelflips pixelflips mentioned this pull request Sep 8, 2022
1 task
@pixelflips pixelflips deleted the SAGE-144_pl-nil-on-optional-props-rails branch September 8, 2022 18:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
improvement Improve on existing work ruby Pull requests that update Ruby code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants