src code

instance method ActiveRecord.Model#toObject

ActiveRecord.Model#toObject([transform_callback]) → Object

Returns a vanilla version of the object, with just the data and no methods. - transform_callback (Function) Will recieve and should reutrn a hash of attributes.