# File lib/active_record/relation.rb, line 118 def first_or_create(attributes = nil, options = {}, &block) first || create(attributes, options, &block) end