Flag arguments are a code smell
A flag argument is a boolean which causes the method to behave differently. It’s an indicator that the code is exercising multiple scenarios based on an external factor. A piece of code on a higher level decides with path to take through a lower level method.
Flag arguments are a code smell #ruby #rubydeveloper #rubyonrails #code