lib/princely/asset_support.rb in princely-2.0.0 vs lib/princely/asset_support.rb in princely-2.0.1

- old
+ new

@@ -14,9 +14,10 @@ html_string end def asset_file_path(asset) # Remove /assets/ from generated names and try and find a matching asset + Rails.application.assets ||= Sprockets::Environment.new Rails.application.assets.find_asset(asset.gsub(%r{/assets/}, "")).try(:pathname) || asset end end end