instance method init_attributes

Ruby on Rails 4.0.13

Since v4.0.13 Last seen in v4.2.9 Private

Available in: v4.0.13 v4.1.16 v4.2.9

Signature

init_attributes(attributes, options)

This method is needed to make protected_attributes gem easier to hook. Remove it when we drop support to this gem.

Parameters

attributes req
options req
Source
# File activerecord/lib/active_record/core.rb, line 468
    def init_attributes(attributes, options)
      assign_attributes(attributes)
    end

Defined in activerecord/lib/active_record/core.rb line 468 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActiveRecord::Core

Type at least 2 characters to search.

↑↓ navigate · open · esc close