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