Added find_or_initialize_by compatibility for rails < 4