Flowdock
method

find_or_create_by!

Importance_1
v6.0.0 - Show latest stable - 0 notes - Class: ActiveRecord::Relation
find_or_create_by!(attributes, &block) public

Like #find_or_create_by, but calls {create!}[rdoc-ref:Persistence::ClassMethods#create!] so an exception is raised if the created record is invalid.

Show source
Register or log in to add new notes.