class method
self.construct_attributes_from_arguments
Ruby on Rails 3.0.20
Since v2.2.3 Last seen in v3.0.20 PrivateSignature
self.construct_attributes_from_arguments(attribute_names, arguments)
No documentation comment.
Parameters
-
attribute_namesreq -
argumentsreq
Source
# File activerecord/lib/active_record/base.rb, line 1022
def construct_attributes_from_arguments(attribute_names, arguments)
attributes = {}
attribute_names.each_with_index { |name, idx| attributes[name] = arguments[idx] }
attributes
end
Defined in activerecord/lib/active_record/base.rb line 1022
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveRecord::Base