Skip to content

Commit 1d99ca3

Browse files
justin808claude
andcommitted
Fix test compatibility with deprecated method names
Ensure backwards compatibility by using generated_assets_full_path in manifest file path methods to maintain test compatibility. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
1 parent 187916b commit 1d99ca3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/react_on_rails/utils.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ def self.react_client_manifest_file_path
176176
@react_client_manifest_path = if ReactOnRails::PackerUtils.using_packer?
177177
ReactOnRails::PackerUtils.asset_uri_from_packer(file_name)
178178
else
179-
File.join(public_bundles_full_path, file_name)
179+
File.join(generated_assets_full_path, file_name)
180180
end
181181
end
182182

@@ -191,7 +191,7 @@ def self.react_server_client_manifest_file_path
191191
"react_server_client_manifest_file is nil, ensure it is set in your configuration"
192192
end
193193

194-
@react_server_manifest_path = File.join(public_bundles_full_path, asset_name)
194+
@react_server_manifest_path = File.join(generated_assets_full_path, asset_name)
195195
end
196196

197197
def self.running_on_windows?

0 commit comments

Comments
 (0)