Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Constant Loading is already suppressed (RuntimeError) #3708

Open
omarabdelaziz22 opened this issue Jan 3, 2025 · 1 comment
Open

Constant Loading is already suppressed (RuntimeError) #3708

omarabdelaziz22 opened this issue Jan 3, 2025 · 1 comment

Comments

@omarabdelaziz22
Copy link

Describe the bug
When running my application after updating from 2.2.1 to 3.3.0 it throws Constant Loading is already suppressed (RuntimeError). It happens in development, production and test environments.

Reproduction steps
update to 3.3.0

Expected behavior
No errors

Additional context

  • rails version: 7.1.0
  • rails_admin version: 3.3.0
  • rails_admin npm package version: 10.8.3
  • full stack trace (if there's an exception)

It worked only when I changed this line raise 'Constant Loading is already suppressed' if @original_const_missing inside the file /rails_admin-3.3.0/lib/rails_admin/config/const_load_suppressor.rb
to return if @original_const_missing

@mshibuya
Copy link
Member

mshibuya commented Jan 5, 2025

Please provide full stack trace, and the content of config/initializers/rails_admin.rb.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants