assign_attributes(new_attributes)
Instance Public methods
Allows you to set all the attributes by passing in a hash of attributes with keys matching the attribute names (which again matches the column names).
If the passed hash responds to permitted?
method and the
return value of this method is false
an
ActiveModel::ForbiddenAttributesError
exception is raised.
Please login to continue.