Commit bcf4946
Disable Style/OneClassPerFile
Newer RuboCop releases activated Style/OneClassPerFile by default,
which flags two intentional patterns in this codebase:
- The ActiveRecord::Associations::Preloader::Association reopen in
lib/simple_master.rb, which is a monkey-patch and not a new class.
- STI subclass families colocated in a single model file in the
rails_sample.
Both patterns are deliberate, so disable the cop project-wide.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 42c339d commit bcf4946
1 file changed
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
63 | 66 | | |
64 | 67 | | |
65 | 68 | | |
| |||
0 commit comments