diff options
Diffstat (limited to 'actionview/lib/action_view/template/handlers/raw.rb')
-rw-r--r-- | actionview/lib/action_view/template/handlers/raw.rb | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/actionview/lib/action_view/template/handlers/raw.rb b/actionview/lib/action_view/template/handlers/raw.rb index 760f517431..57ebb169fc 100644 --- a/actionview/lib/action_view/template/handlers/raw.rb +++ b/actionview/lib/action_view/template/handlers/raw.rb @@ -1,8 +1,10 @@ +# frozen_string_literal: true + module ActionView module Template::Handlers class Raw - def call(template) - "#{template.source.inspect};" + def call(template, source) + "#{source.inspect}.html_safe;" end end end |