method

init_with_attributes

rails latest stable - Class: ActiveRecord::Core::ClassMethods

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v7.0.0) is shown here.

init_with_attributes(attributes, new_record = false)
public

Initialize an empty model object from attributes. attributes should be an attributes object, and unlike the `initialize` method, no assignment calls are made per attribute.