method
find_or_initialize_by
v7.2.3 -
Show latest stable
- Class:
ActiveRecord::Relation
find_or_initialize_by(attributes, &block)public
Like #find_or_create_by, but calls new instead of {create}[rdoc-ref:Persistence::ClassMethods#create].