Drop Erb.new safe_mode altogether

We were always setting this to nil, but now it looks like the Erb library
no longer even supports it, e.g.:

  https://github.com/ruby/erb/pull/7/files
This commit is contained in:
Rick Bradley 2022-08-02 21:50:55 -05:00
Родитель 927ff33915
Коммит 2381404348
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -65,7 +65,7 @@ module Entitlements
end
def render(template)
::ERB.new(template, safe_level: nil, trim_mode: "-").result(binding)
::ERB.new(template, trim_mode: "-").result(binding)
end
end