• Arturo Herrero's avatar
    Use find_by instead of where + first · 9693677a
    Arturo Herrero authored
    Update usages of `where.first` and change them to use `find_by` instead.
    
      # bad
      User.where(name: 'Bruce').first
      User.where(name: 'Bruce').take
    
      # good
      User.find_by(name: 'Bruce')
    9693677a
schedule_to_archive_legacy_traces_spec.rb 2.3 KB