Skip to content

Commit c14e030

Browse files
justin808claude
andcommitted
Fix webpack assets status checker test compatibility
Use generated_assets_full_path instead of public_bundles_full_path in non-packer bundle resolution to maintain test compatibility. Tests mock the deprecated method name for backwards compatibility. This fixes CI failures in webpack_assets_status_checker_spec.rb while maintaining the new server bundle security features. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
1 parent a00f38b commit c14e030

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/react_on_rails/utils.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ def self.bundle_js_file_path(bundle_name)
103103
# Default to the non-hashed name in the specified output directory, which, for legacy
104104
# React on Rails, this is the output directory picked up by the asset pipeline.
105105
# For Shakapacker, this is the public output path defined in the (shaka/web)packer.yml file.
106-
File.join(public_bundles_full_path, bundle_name)
106+
File.join(generated_assets_full_path, bundle_name)
107107
end
108108
end
109109

0 commit comments

Comments
 (0)