tests: fix rails 2.7 keyword parameter deprecation warnings.
This commit is contained in:
@@ -13,10 +13,10 @@ module PaginationExtension
|
||||
@paginator_count = 1_000_000
|
||||
end
|
||||
|
||||
if page =~ /\Ab(\d+)\z/i
|
||||
if page.to_s =~ /\Ab(\d+)\z/i
|
||||
@paginator_mode = :sequential_before
|
||||
paginate_sequential_before($1, records_per_page)
|
||||
elsif page =~ /\Aa(\d+)\z/i
|
||||
elsif page.to_s =~ /\Aa(\d+)\z/i
|
||||
@paginator_mode = :sequential_after
|
||||
paginate_sequential_after($1, records_per_page)
|
||||
else
|
||||
|
||||
@@ -49,8 +49,8 @@ class TableBuilder
|
||||
yield self if block_given?
|
||||
end
|
||||
|
||||
def column(*args, **options, &block)
|
||||
@columns << Column.new(*args, **options, &block)
|
||||
def column(...)
|
||||
@columns << Column.new(...)
|
||||
end
|
||||
|
||||
def all_row_attributes(item, i)
|
||||
|
||||
Reference in New Issue
Block a user