rmm5t / strip_attributes

:hocho: An ActiveModel extension that automatically strips all attributes of leading and trailing whitespace before validation. If the attribute is blank, it strips the value to nil.
https://github.com/rmm5t/strip_attributes
MIT License
558 stars 51 forks source link

Clean up and remove (now) redundant #respond_to? calls #49

Closed rmm5t closed 4 years ago

rmm5t commented 4 years ago

@zarqman suggested this in #48. Given the new guard clause to check for String, I thought it was a good idea to clean up the extra #respond_to? guard clauses now.