Skip to content

Commit 74cbe4a

Browse files
committed
Disable Lint/RedundantTypeConversion for application layout
See c261cfd
1 parent 1f49b02 commit 74cbe4a

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
@@ -19,7 +19,9 @@ html lang=I18n.locale data-default-locale=I18n.default_locale
1919
= csrf_meta_tags
2020
/= csp_meta_tag
2121
meta name='sentry' data-enabled=SentryJavascript.active?.to_s data-release=SentryJavascript.release data-dsn=SentryJavascript.dsn data-environment=SentryJavascript.environment content=''
22+
- # rubocop:disable Lint/RedundantTypeConversion -- the `.to_s` is needed if `current_user` is `nil`. Otherwise, the `content` attribute would be omitted.
2223
meta name='current-user' content=current_user&.to_page_context&.to_json.to_s
24+
- # rubocop:enable Lint/RedundantTypeConversion
2325
body.d-flex.flex-column
2426
#content
2527
header.sticky-top

0 commit comments

Comments
 (0)