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

Handle nil inputs in Sanitize::Rails::Engine#clean and #clean! #8

Merged
merged 2 commits into from
Apr 22, 2014

Conversation

damien
Copy link
Contributor

@damien damien commented Apr 22, 2014

Additionally, this pull also includes fixes for some MiniTest deprecation warnings.

…eptions

The exception raising behavior is also out of the norm for the usual API
for rails helpers: most helpers, when provided a nil input,
simply return nil or a blank string.

This commit changes the
`Sanitize::Rails::Engine#clean` and `Sanitize::Rails::Engine#clean!`
methods such that they return blank strings when provided nil inputs.
vjt added a commit that referenced this pull request Apr 22, 2014
Handle nil inputs in Sanitize::Rails::Engine#clean and #clean!
@vjt vjt merged commit 95ea981 into vjt:master Apr 22, 2014
@vjt
Copy link
Owner

vjt commented Apr 22, 2014

Wonderful, thanks. I'll :shipit: a new gem version soon.

@vjt vjt self-assigned this Apr 22, 2014
@damien damien deleted the handle-nil-inputs branch April 22, 2014 18:02
@damien
Copy link
Contributor Author

damien commented Apr 22, 2014

Thanks!

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