lib/railsui_icon/icon.rb in railsui_icon-1.0.5 vs lib/railsui_icon/icon.rb in railsui_icon-1.0.6
- old
+ new
@@ -52,10 +52,10 @@
end
app_asset_path = Rails.root.join("app/assets/images#{custom_path}")
if File.exist?(app_asset_path)
- asset_path = app_asset_path
+ asset_path = app_asset_path.to_s
end
raise ArgumentError, "Asset path cannot be nil" if asset_path.nil?
svg_content = File.read(asset_path)