Skip to content

Commit a02ad7c

Browse files
justin808claude
andcommitted
Fix NoMethodError: call Engine.skip_version_validation? as class method
The initializer block context doesn't have direct access to class methods. Changed from `skip_version_validation?` to `Engine.skip_version_validation?` to properly call the class method. Fixes error: NoMethodError: undefined method `skip_version_validation?' for #<ReactOnRails::Engine> 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent ae90628 commit a02ad7c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/react_on_rails/engine.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ class Engine < ::Rails::Engine
99
# Skip validation during installation tasks (e.g., shakapacker:install) or generator runtime
1010
initializer "react_on_rails.validate_version_and_package_compatibility" do
1111
config.after_initialize do
12-
next if skip_version_validation?
12+
next if Engine.skip_version_validation?
1313

1414
Rails.logger.info "[React on Rails] Validating package version and compatibility..."
1515
VersionChecker.build.validate_version_and_package_compatibility!

0 commit comments

Comments
 (0)