Skip to content

Commit

Permalink
Merge pull request #224 from phlex-ruby/safe-buffer-is-safe-object
Browse files Browse the repository at this point in the history
ActiveSupport::SafeBuffer should be a SafeObject
  • Loading branch information
joeldrapper authored Sep 6, 2024
2 parents 670d539 + 6f8403a commit f0dd6d0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions lib/phlex/rails.rb
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,6 @@ module Rails

HTML.extend Phlex::Rails::HTML::Format
HTML.include Phlex::Rails::HTML::Format

ActiveSupport::SafeBuffer.include(Phlex::SGML::SafeObject)
end
2 changes: 1 addition & 1 deletion lib/phlex/rails/layout.rb
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def render(view_context, *args, **kwargs, &block)
output = view_context.capture(&block)
end

unsafe_raw output
raw output
end
end
end
Expand Down

0 comments on commit f0dd6d0

Please sign in to comment.