diff --git a/lib/bulletmark_repairer/markers.rb b/lib/bulletmark_repairer/markers.rb index f6d354f..78f9048 100644 --- a/lib/bulletmark_repairer/markers.rb +++ b/lib/bulletmark_repairer/markers.rb @@ -75,7 +75,7 @@ def set_up @instance_variable_name = line&.scan(/\b?(@[\w]+)\b?/)&.flatten&.last end end - @index = view_yield_index.negative? ? nil : "#{view_file}:#{view_yield_index}" + @index = @instance_variable_name ? "#{view_file}:#{view_yield_index}" : nil else # TODO: Ignore controllers list # TODO: Allow directories list