Fix deprecated keyword argument warnings in Ruby 2.7.
Fix this warning:
warning: Using the last argument as keyword parameters is
deprecated; maybe ** should be added to the call.
ref: https://www.ruby-lang.org/en/news/2019/12/12/separation-of-positional-and-keyword-arguments-in-ruby-3-0/#delegation
This commit is contained in:
@@ -236,8 +236,8 @@ module ApplicationHelper
|
||||
simple_form_for(model, **options, &block)
|
||||
end
|
||||
|
||||
def table_for(*options, &block)
|
||||
table = TableBuilder.new(*options, &block)
|
||||
def table_for(*args, **options, &block)
|
||||
table = TableBuilder.new(*args, **options, &block)
|
||||
render "table_builder/table", table: table
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user