method
init_with_attributes
rails latest stable - Class:
ActiveRecord::Core::ClassMethods
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.