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