Skip to content

Commit e728312

Browse files
committed
fix: disable Style/ArgumentsForwarding for Ruby 2.6 compatibility
The argument forwarding syntax (...) was added in Ruby 2.7, so we need to disable this cop to maintain compatibility with Ruby 2.6.
1 parent d6dfd38 commit e728312

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

templatescompiler/erbrenderer/erb_renderer.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -174,8 +174,8 @@ def else
174174
yield
175175
end
176176

177-
def else_if_p(*names, &block)
178-
@context.if_p(*names, &block)
177+
def else_if_p(*names, &block) # rubocop:disable Style/ArgumentsForwarding
178+
@context.if_p(*names, &block) # rubocop:disable Style/ArgumentsForwarding
179179
end
180180
end
181181

0 commit comments

Comments
 (0)