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:
evazion
2020-02-16 18:44:23 -06:00
parent af4891bf4c
commit ed702b8854
3 changed files with 8 additions and 8 deletions

View File

@@ -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