Skip to content

Commit fdaf374

Browse files
committed
Ensure that locale is passed to nav item title super method
1 parent 7bbb778 commit fdaf374

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/models/better_together/navigation_item.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ def set_position
179179
def title(options = {}, locale: I18n.locale) # rubocop:todo Lint/UnusedMethodArgument
180180
return linkable.title(**options) if linkable.present? && linkable.respond_to?(:title)
181181

182-
super(**options)
182+
super(**options, locale:)
183183
end
184184

185185
def title=(arg, options = {}, locale: I18n.locale)

0 commit comments

Comments
 (0)