jamesmartin / inline_svg

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

fix: if file isn't found then this would be nil #138

Closed jnylen closed 1 month ago

jnylen commented 2 years ago

This fixes an issue where the path is nil if the file doesn't exist so it raises an error rather than showing an inline error.

jamesmartin commented 2 years ago

Thanks for the PR. If you have time to write a test, that would be much appreciated. ✨