Updating Rails 4.0.5 to 4.1.1 , Adding where clause instead of find_by as it is deprecated