mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Typecast to string and array are not supported in multiparameter
attributes
This commit is contained in:
parent
d88b65f986
commit
ae7f109cce
1 changed files with 2 additions and 3 deletions
|
@ -57,9 +57,8 @@ module ActiveRecord
|
|||
# by calling new on the column type or aggregation type (through composed_of) object with these parameters.
|
||||
# So having the pairs written_on(1) = "2004", written_on(2) = "6", written_on(3) = "24", will instantiate
|
||||
# written_on (a date type) with Date.new("2004", "6", "24"). You can also specify a typecast character in the
|
||||
# parentheses to have the parameters typecasted before they're used in the constructor. Use i for Fixnum,
|
||||
# f for Float, s for String, and a for Array. If all the values for a given attribute are empty, the
|
||||
# attribute will be set to +nil+.
|
||||
# parentheses to have the parameters typecasted before they're used in the constructor. Use i for Fixnum and
|
||||
# f for Float. If all the values for a given attribute are empty, the attribute will be set to +nil+.
|
||||
def assign_multiparameter_attributes(pairs)
|
||||
execute_callstack_for_multiparameter_attributes(
|
||||
extract_callstack_for_multiparameter_attributes(pairs)
|
||||
|
|
Loading…
Reference in a new issue