Skip to content

Commit 34e161b

Browse files
committed
Disable Lint/RedundantTypeConversion for application layout
See b515e89
1 parent 9fdb03a commit 34e161b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

app/views/layouts/application.html.slim

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,10 @@ html lang=I18n.locale data-default-locale=I18n.default_locale
2020
= csrf_meta_tags
2121
/= csp_meta_tag
2222
meta name='sentry' data-enabled=SentryJavascript.active?.to_s data-release=SentryJavascript.release data-dsn=SentryJavascript.dsn data-environment=SentryJavascript.environment content=''
23+
- # rubocop:disable Lint/RedundantTypeConversion -- the `.to_s` is needed if `current_user` is `nil`. Otherwise, the `content` attribute would be omitted.
2324
meta name='current-user' content=current_user&.to_page_context&.to_json.to_s
2425
meta name='current-contributor' content=current_contributor&.to_page_context&.to_json.to_s
26+
- # rubocop:enable Lint/RedundantTypeConversion
2527
body
2628
- unless @embed_options[:hide_navbar]
2729
nav.navbar.bg-dark.navbar-expand-md.mb-4.py-1 data-bs-theme="dark"

0 commit comments

Comments
 (0)