jamesmartin / inline_svg

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

Optionally raise an error when SVG file not found #94

Closed jamesmartin closed 5 years ago

jamesmartin commented 5 years ago

Suggested in https://github.com/jamesmartin/inline_svg/issues/93.

This branch allows inline_svg to be configured to raise an error when an SVG file is not found, rather than including a placeholder.

InlineSvg.configure do |config|
  config.raise_on_file_not_found = true
end

/cc @elalemanyo, is this what you had in mind?