You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Rails/Output cop is flagging p and puts inside migrations and generators saying I should use the logger instead. Rails.logger does not appear to be a drop in replacement for them in these contexts. Rails.logger.info goes to log/dev.log which is incorrect, it should be displayed to the screen like the rest of the generator or migration output.
Should Rails/Output be disabled by default for generators and migrations? Or does Rails/Output need extra documentation about the right thing to do inside generators and migrations?
The text was updated successfully, but these errors were encountered:
The Rails/Output cop is flagging
p
andputs
inside migrations and generators saying I should use the logger instead.Rails.logger
does not appear to be a drop in replacement for them in these contexts.Rails.logger.info
goes tolog/dev.log
which is incorrect, it should be displayed to the screen like the rest of the generator or migration output.Should Rails/Output be disabled by default for generators and migrations? Or does Rails/Output need extra documentation about the right thing to do inside generators and migrations?
The text was updated successfully, but these errors were encountered: