jamesmartin / inline_svg

Embed SVG documents in your Rails views and style them with CSS
MIT License
716 stars 72 forks source link

Drop legacy code: `html_escape_once` conditional, how "newer"? #164

Closed tagliala closed 2 months ago

tagliala commented 2 months ago

https://github.com/jamesmartin/inline_svg/blob/275d2af6617f92da90a5cb01208ad6102b8b6304/lib/inline_svg/action_view/helpers.rb#L26

https://github.com/jamesmartin/inline_svg/blame/2d5c4d1be8601ec078d86db1f665cd3dcb9428fb/lib/inline_svg/action_view/helpers.rb#L26

https://github.com/jamesmartin/inline_svg/commit/ed19d7c2ba5953977a6777a52ffe1e4afd06a1e0

Ref: #161

tagliala commented 2 months ago

It is present in 6.1.0, the minimum required Rails version

https://github.com/rails/rails/blob/v6.1.0/activesupport/lib/active_support/core_ext/string/output_safety.rb#L50

In 7.1.0, this file has been moved to their own file rails/rails@9f5dee3a916a762a30efc472b52c613eb8979c5d