class method self.construct_attributes_from_arguments

Ruby on Rails 3.0.20

Since v2.2.3 Last seen in v3.0.20 Private

Available in: v2.2.3 v2.3.18 v3.0.20

Signature

self.construct_attributes_from_arguments(attribute_names, arguments)

No documentation comment.

Parameters

attribute_names req
arguments req
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

Type at least 2 characters to search.

↑↓ navigate · open · esc close