Skip to content

Commit d434260

Browse files
committed
Document Rails/Delegate RuboCop change in steno README
Clarify that the ActiveSupport delegation require was added specifically for the Rails/Delegate cop auto-correction in log_level.rb, which converted 'def to_s; @name.to_s; end' to 'delegate :to_s, to: :@name'. This makes it clearer why the ActiveSupport dependency was introduced and which specific file uses it.
1 parent 2909e1f commit d434260

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/steno/README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,8 @@ Syslog.close if Syslog.opened?
6262
- `sprintf` → string interpolation
6363
- Added rubocop disable comments where needed
6464
- Added empty class documentation
65-
- Added `require 'active_support/core_ext/module/delegation'` where needed
65+
- `Rails/Delegate` cop: Converted `def to_s; @name.to_s; end` to `delegate :to_s, to: :@name` in `log_level.rb`
66+
- Required adding `require 'active_support/core_ext/module/delegation'`
6667

6768
### 4. Test Structure Updates
6869
- Moved tests from `lib/steno/spec/` to `spec/unit/lib/steno/` (CCNG convention)

0 commit comments

Comments
 (0)