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

Stop raising an exception when callback in UsersController is undefined #110

Merged
merged 1 commit into from
Sep 12, 2017
Merged

Stop raising an exception when callback in UsersController is undefined #110

merged 1 commit into from
Sep 12, 2017

Conversation

swcraig
Copy link
Contributor

@swcraig swcraig commented Sep 12, 2017

The specs are failing because set_current_order is not defined as a
process_action callback. This used to be the case but then it was
removed from Solidus.

PR removing this callback:
solidusio/solidus#2185

@swcraig
Copy link
Contributor Author

swcraig commented Sep 12, 2017

I noticed a small typo in the commit message. That was my change after Andrew's approval.

@stewart
Copy link
Contributor

stewart commented Sep 12, 2017

In thinking about this a bit more, this solution may be incomplete, as we need to support older versions of Solidus, which will still have set_current_order defined.

The specs against Solidus master are failing because `set_current_order`
is not defined as a process_action callback. This used to be the case
but Solidus has removed this and slated it for v2.4.

For compatibility with older versions of Solidus, we should not raise an
ArgumentError if this callback is not defined but still skip it if it
is.

PR removing this callback:
solidusio/solidus#2185
@swcraig
Copy link
Contributor Author

swcraig commented Sep 12, 2017

I've made an update adding raise: false. This should be compatible with both versions of Solidus, those that have the callback defined and those that do not.

@swcraig swcraig changed the title Remove skip_before_action of undefined callback Stop raising an exception when callback in UsersController is undefined Sep 12, 2017
@stewart stewart merged commit ecc5970 into solidusio:master Sep 12, 2017
@swcraig swcraig deleted the remove-skipping-undefined-callback branch September 12, 2017 23:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants