Skip to content

Ensure Kernel.raise remains private after patch #351

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

Merged
merged 1 commit into from
Sep 10, 2014

Conversation

mattbrictson
Copy link
Contributor

Kernel.raise is originally private, but define_method(:raise) creates a method that is public. Use private :raise to make the redefined method private to be consistent with default Ruby behavior.

Fixes #350.

Kernel.raise is originally private, but define_method(:raise) creates a
method that is public. Use `private :raise` to make the redefined method
private to be consistent with default Ruby behavior.

Fixes rails#350.
@mattbrictson mattbrictson force-pushed the define-raise-as-private branch from 457779e to 4bcf933 Compare September 10, 2014 01:06
rafaelfranca added a commit that referenced this pull request Sep 10, 2014
Ensure Kernel.raise remains private after patch
@rafaelfranca rafaelfranca merged commit c579428 into rails:master Sep 10, 2014
@liseki
Copy link

liseki commented Sep 26, 2014

Thanks @mattbrictson!

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.

shush_backtraces breaks Minitest::Mock
3 participants