joshbuddy/swearjar — Issue #3: Better handling of nil inputs
Author: davidkennedy-examtime
Created: 2011-12-12 17:31:54+00:00
State: open

text = nil
Swearjar.default.profane?(text)
NoMethodError: undefined method `scan' for nil:NilClass

Would prefer that Swearjar.default.profane(nil) was false

This just took me a while to track down when invoked from a validation rule.