Skip to content

Commit 112dbad

Browse files
committed
Fix Ruby3 kwargs
1 parent de803eb commit 112dbad

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

app/decorators/application_decorator.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,17 @@ class ApplicationDecorator < Draper::Decorator
66

77

88
def created_at(opts = {})
9-
h.l(object.created_at, opts)
9+
h.l(object.created_at, **opts)
1010
end
1111

1212

1313
def updated_at(opts = {})
14-
h.l(object.updated_at, opts)
14+
h.l(object.updated_at, **opts)
1515
end
1616

1717

1818
def to_checkbox(opts = {})
19-
_record_check_box(object, opts)
19+
_record_check_box(object, **opts)
2020
end
2121

2222

app/helpers/common/font_awesome_helper.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def fa_icon(names = 'flag', original_options = {})
3838
classes.concat Array(options.delete(:class))
3939
text = options.delete(:text)
4040
right_icon = options.delete(:right)
41-
icon = tag.i(nil, options.merge(class: classes))
41+
icon = tag.i(nil, **options.merge(class: classes))
4242
Private.icon_join(icon, text, reverse_order: right_icon)
4343
end
4444

0 commit comments

Comments
 (0)