diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2012-10-18 00:31:05 -0300 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2012-10-18 00:31:05 -0300 |
commit | ae7f109cce040746cebada0dd01f80071eace1f1 (patch) | |
tree | 97aa45415f05edcaeeb6058240b95273e6fa9546 | |
parent | d88b65f986147d932b41370c4d4c56b6b8a09bd0 (diff) | |
download | rails-ae7f109cce040746cebada0dd01f80071eace1f1.tar.gz rails-ae7f109cce040746cebada0dd01f80071eace1f1.tar.bz2 rails-ae7f109cce040746cebada0dd01f80071eace1f1.zip |
Typecast to string and array are not supported in multiparameter
attributes
-rw-r--r-- | activerecord/lib/active_record/attribute_assignment.rb | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/activerecord/lib/active_record/attribute_assignment.rb b/activerecord/lib/active_record/attribute_assignment.rb index af13b75a9d..6c5e2ac05d 100644 --- a/activerecord/lib/active_record/attribute_assignment.rb +++ b/activerecord/lib/active_record/attribute_assignment.rb @@ -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) |