Skip to content

Commit 5089ced

Browse files
committed
Remove respond_to? from preview actions
1 parent ac278a0 commit 5089ced

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/controllers/concerns/view_component/preview_actions.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ module PreviewActions
1010
around_action :set_locale, only: :previews
1111
before_action :require_local!, unless: :show_previews?
1212

13-
content_security_policy(false) if respond_to?(:content_security_policy)
13+
content_security_policy(false)
1414

1515
# Including helpers here ensures that we're loading the
1616
# latest version of helpers if code-reloading is enabled

0 commit comments

Comments
 (0)