codeclimate/codeclimate-rubocop

View on GitHub
config/contents/rails/find_by.md

Summary

Maintainability
Test Coverage
This cop is used to identify usages of `where.first` and
change them to use `find_by` instead.

### Example:
    # bad
    User.where(name: 'Bruce').first
    User.where(name: 'Bruce').take

    # good
    User.find_by(name: 'Bruce')