Skip to content

Commit e9bb19f

Browse files
committed
Suppress InternalAffairs/ProcessedSourceBufferName's offense
This commit suppresses the following `InternalAffairs/ProcessedSourceBufferName`'s offense: ```console $ bundle exec rake (snip) lib/rubocop/cop/rails/deprecated_active_model_errors_methods.rb:163:28: C: [Correctable] InternalAffairs/ProcessedSourceBufferName: Use file_path instead. processed_source.buffer.name.include?('/models/') ^^^^^^^^^^^ 279 files inspected, 1 offense detected, 1 offense autocorrectable ```
1 parent 81b0fdc commit e9bb19f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/rubocop/cop/rails/deprecated_active_model_errors_methods.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ def receiver_matcher(node)
160160
end
161161

162162
def model_file?
163-
processed_source.buffer.name.include?('/models/')
163+
processed_source.file_path.include?('/models/')
164164
end
165165
end
166166
end

0 commit comments

Comments
 (0)