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

Enable to use custom helpers in error middleware, closes #438 #1232

Closed
wants to merge 1 commit into from

Conversation

namusyaka
Copy link
Contributor

Hello, everyone.
I'd love to use custom helpers in the Error middleware.
This change might be able to close #438 issue.
Could you review this?

Thanks.

@@ -1292,6 +1292,20 @@ def three
expect { get '/exception' }.to raise_error(RuntimeError, 'rain!')
end

it 'should be able to use custom helpers defined by using #helpers method' do
Copy link
Member

Choose a reason for hiding this comment

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

should be able to use -> uses

@dblock
Copy link
Member

dblock commented Dec 25, 2015

This looks good to me. Update CHANGELOG please, squash commits. Maybe needs a README change, if you find any suitable place.

@namusyaka
Copy link
Contributor Author

@dblock Thank you. Fixed and force pushed.

@dblock
Copy link
Member

dblock commented Dec 26, 2015

Merged via 951ae51 (slightly amended text). Thanks!

@dblock dblock closed this Dec 26, 2015
@namusyaka namusyaka deleted the fix-438 branch December 26, 2015 15:05
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.

Helper functions not available in rescue_from
2 participants