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

Allow action to be configured when rescuing from ActiveRecord::RecordNotFound #49

Closed
wants to merge 1 commit into from

Conversation

jackbot
Copy link
Contributor

@jackbot jackbot commented Apr 26, 2015

This PR allows behaviour when user tries to view a post which does not exist (or is not published) to be configured by the parent app. This is for cases where the parent app might not want to render a 404 CMS page. By default it performs the same action as it does right now.

@samrayner
Copy link

Would appreciate this 👍

@GBH
Copy link
Member

GBH commented Nov 30, 2017

I feel like overriding controller action is better than hiding functionality behind a proc.

@GBH GBH closed this Nov 30, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants