Flowdock
method

read_other_parameter_value

Importance_0
v3.2.3 - Show latest stable - 0 notes - Class: AttributeAssignment
read_other_parameter_value(klass, name, values_hash_from_param) 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 184
    def read_other_parameter_value(klass, name, values_hash_from_param)
      max_position = extract_max_param_for_multiparameter_attributes(values_hash_from_param)
      values = (1..max_position).collect do |position|
        raise "Missing Parameter" if !values_hash_from_param.has_key?(position)
        values_hash_from_param[position]
      end
      klass.new(*values)
    end
Register or log in to add new notes.