lib/heroicon/icon.rb in heroicon-0.2.0 vs lib/heroicon/icon.rb in heroicon-0.2.1
- old
+ new
@@ -29,10 +29,10 @@
:solid
end
end
def file
- @file ||= Rails.application.assets.find_asset("heroicon/#{variant}/#{name}.svg").source.force_encoding("UTF-8")
+ @file ||= Rails.application.assets_manifest.find_sources("heroicon/#{variant}/#{name}.svg").first.force_encoding("UTF-8")
rescue
nil
end
def warning