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

Remove render_404 from frontend #2329

Merged
merged 2 commits into from
Oct 27, 2017

Conversation

jhawthorn
Copy link
Contributor

Extracted from #2281

Rails knows how to render a 404, so this is unnecessary and can hide errors.

Some users will have used this to override the behaviour. These users can either re-add the rescue_froms in their own app, or use Rails's config.exception_app.

I don't think the original intention of this spec was for the controller
to error. This wasn't noticed because the error was being swallowed by
rescue_from render_404.
Rails knows how to render a 404, so this is unnecessary and can hide
errors.

Doing this is also necessary in order to test without full rails
installation directory (specifically with a public/404.html).
@jhawthorn jhawthorn requested a review from tvdeyen October 26, 2017 19:05
Copy link
Member

@tvdeyen tvdeyen left a comment

Choose a reason for hiding this comment

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

Thanks.

@jhawthorn jhawthorn merged commit 56a9201 into solidusio:master Oct 27, 2017
kennyadsl added a commit to solidusio-contrib/solidus_reviews that referenced this pull request Nov 3, 2017
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