added select_first_or_initialize method to ActiveRecord::Relation.