Skip to content
This repository has been archived by the owner on Apr 14, 2023. It is now read-only.

Fix value conversion method #263

Merged
merged 1 commit into from
Oct 9, 2020

Conversation

seand7565
Copy link
Contributor

In Solidus, this method has changed from having two parameters to
having three. This updates the method here to match, so we avoid
any too_many_parameter errors. Most noticably, this was affecting
our test suite.

See: solidusio/solidus@e05da68

@seand7565
Copy link
Contributor Author

Ah - didn't consider that it supers, so on older versions of Solidus this will still fail. Stand by, will figure something out...

In Solidus, this method has changed from having two parameters to
having three. This updates the method here to match, so we avoid
any too_many_parameter errors. Most noticably, this was affecting
our test suite.

See: solidusio/solidus@e05da68
@seand7565 seand7565 force-pushed the fix_value_conversion branch from 10e4af5 to 16d5c77 Compare October 8, 2020 20:41
@seand7565
Copy link
Contributor Author

Due to the awkwardness of the change from 2 to 3 parameters, and needing to support multiple Solidus versions, we're using a method here that checks how many parameters super has, and acting accordingly.

Should be good for a review now!

Copy link
Member

@kennyadsl kennyadsl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should probably add support to convert a string to a hash in core directly, but that's another story. Works for me!

@kennyadsl kennyadsl merged commit 50f0a84 into solidusio:master Oct 9, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants