module ActiveRecordAttributesStripper

Constants

VERSION

Protected Instance Methods

strip_attributes() click to toggle source
# File lib/active_record_attributes_stripper.rb, line 5
def strip_attributes
  @attributes.to_hash.each do |attr, value|
    self[attr] = value.strip if value.present? && value.respond_to?(:strip)
  end
end