Flowdock
method

cast

Importance_1
v6.1.3.1 - Show latest stable - 0 notes - Class: Value
cast(value) public

Type casts a value from user input (e.g. from a setter). This value may be a string from the form builder, or a ruby object passed to a setter. There is currently no way to differentiate between which source it came from.

The return value of this method will be returned from ActiveRecord::AttributeMethods::Read#read_attribute. See also: Value#cast_value.

value The raw input, as provided to the attribute setter.

Show source
Register or log in to add new notes.