lib/rubocop/cop/rails/file_path.rb in rubocop-0.52.0 vs lib/rubocop/cop/rails/file_path.rb in rubocop-0.52.1

- old
+ new

@@ -60,10 +60,10 @@ node.str_type? && node.source =~ %r{/} end def register_offense(node) line_range = node.loc.column...node.loc.last_column - source_range = source_range(processed_source.buffer, node.loc.line, + source_range = source_range(processed_source.buffer, node.first_line, line_range) add_offense(node, location: source_range) end end end