Closed pbyrne closed 4 years ago
Thanks for the 👍, @jamesmartin! Wondering when this could be merged and a new release pushed.
Sorry it the delay, @pbyrne. I've merged your PR and will make a new release later this week.
Actually, it looks like your change isn't backwards compatible with Rails 3:
ActionView::Template::Error: undefined method `html_escape_once' for ERB::Util:Module
89
Did you mean? html_escape
We'll probably need a conditional to check for that. The good news is that we'll be dropping Rails 3 support in Version 2 of this gem, but for now we've got to support it.
Because:
inline_svg
, but it feels safer to have the gem handle this better from the get-go.Solution:
content_tag
to render the SVG rather than a raw string, but this felt like a smaller change.