Skip to content

Constant Loading is already suppressed (RuntimeError) #3708

@omarabdelaziz22

Description

@omarabdelaziz22

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions