lib/react/server_rendering/manifest_container.rb in react-rails-1.6.0 vs lib/react/server_rendering/manifest_container.rb in react-rails-1.6.1

- old
+ new

@@ -9,10 +9,10 @@ @manifest = ::Rails.application.assets_manifest end def find_asset(logical_path) asset_path = @manifest.assets[logical_path] || raise("No compiled asset for #{logical_path}, was it precompiled?") - asset_full_path = ::Rails.root.join("public", @manifest.directory, asset_path) + asset_full_path = ::Rails.root.join("public", @manifest.dir, asset_path) File.read(asset_full_path) end end end end