instance method
find_parameter_position
Ruby on Rails edge
Since v3.2.22.5 Private — implementation detail, not part of the public APISignature
find_parameter_position(multiparameter_name)
No documentation comment.
Parameters
-
multiparameter_namereq
Source
# File activerecord/lib/active_record/attribute_assignment.rb, line 93
def find_parameter_position(multiparameter_name)
match = multiparameter_name.match(/\(([0-9]*).*\)/)
raise InvalidParameterKey, "could not parse parameter position from #{multiparameter_name.inspect}" unless match
match[1].to_i
end
Defined in activerecord/lib/active_record/attribute_assignment.rb line 93
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveRecord::AttributeAssignment