I think you are looking for attributes_before_type_cast. See ActiveRecord::Base
Sandeep Gudibanda wrote: