Skip to content

Commit f0dd6d0

Browse files
authored
Merge pull request #224 from phlex-ruby/safe-buffer-is-safe-object
ActiveSupport::SafeBuffer should be a SafeObject
2 parents 670d539 + 6f8403a commit f0dd6d0

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

lib/phlex/rails.rb

+2
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,6 @@ module Rails
3232

3333
HTML.extend Phlex::Rails::HTML::Format
3434
HTML.include Phlex::Rails::HTML::Format
35+
36+
ActiveSupport::SafeBuffer.include(Phlex::SGML::SafeObject)
3537
end

lib/phlex/rails/layout.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ def render(view_context, *args, **kwargs, &block)
5757
output = view_context.capture(&block)
5858
end
5959

60-
unsafe_raw output
60+
raw output
6161
end
6262
end
6363
end

0 commit comments

Comments
 (0)