rubocop / rails-style-guide

A community-driven Ruby on Rails style guide
http://rails.rubystyle.guide
6.47k stars 1.06k forks source link

Suggestion: don't divide `.where.not` into two lines #341

Open ydakuka opened 1 year ago

ydakuka commented 1 year ago

I treat where.not as a single method, so I suggest not to divide it into two lines.

# bad
User.where
    .not(id: [1, 2, 3])
    .ids

# good
User.where.not(id: [1, 2, 3])
    .ids