Commit 6d58c2c
Use respond_to? for safe method calls in ensure_webpack_generated_files_exists
Fixes NoMethodError when merging with master branch that doesn't yet have
rsc_bundle_js_file, react_client_manifest_file, and react_server_client_manifest_file
attr_accessors.
This branch adds these new Pro features, but they don't exist in master yet.
When CI merges the PR for testing, these methods aren't defined, causing
"undefined method" errors.
Solution: Use respond_to? to check if methods exist before calling them,
allowing the code to work both in this feature branch (where they exist)
and when merged/tested against master (where they don't exist yet).
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <[email protected]>1 parent 3391538 commit 6d58c2c
1 file changed
+3
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
325 | 325 | | |
326 | 326 | | |
327 | 327 | | |
328 | | - | |
329 | | - | |
330 | | - | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
331 | 331 | | |
332 | 332 | | |
333 | 333 | | |
| |||
0 commit comments