Flowdock
method

type_cast_attribute_value

Importance_0
v3.2.8 - Show latest stable - 0 notes - Class: AttributeAssignment
type_cast_attribute_value(multiparameter_name, value) private

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File activerecord/lib/active_record/attribute_assignment.rb, line 212
    def type_cast_attribute_value(multiparameter_name, value)
      multiparameter_name =~ /\([0-9]*([if])\)/ ? value.send("to_" + $1) : value
    end
Register or log in to add new notes.