Skip to content

Commit

Permalink
Fix redundant line continuation
Browse files Browse the repository at this point in the history
  • Loading branch information
Splines committed Feb 28, 2025
1 parent f7651c8 commit 255b5c4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions config/initializers/html_sanitization.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Rails.application.config.after_initialize do
default_allowed_attributes =
Rails::HTML5::Sanitizer.safe_list_sanitizer.allowed_attributes + \
ActionText::Attachment::ATTRIBUTES.to_set
Rails::HTML5::Sanitizer.safe_list_sanitizer.allowed_attributes \
+ ActionText::Attachment::ATTRIBUTES.to_set
custom_allowed_attributes = Set.new(["controls"])
ActionText::ContentHelper.allowed_attributes = (default_allowed_attributes +
custom_allowed_attributes).freeze
Expand Down

0 comments on commit 255b5c4

Please sign in to comment.