1 module RedHillConsulting::Acts::Stripper::ActiveRecord
3 def self.included(base)
4 base.alias_method_chain :write_attribute, :stripper
7 def write_attribute_with_stripper(attr_name, value)
8 value = value.strip if value.respond_to?(:strip)
9 value = nil if value.blank?
10 write_attribute_without_stripper(attr_name, value)