active_admin_sidebar icon indicating copy to clipboard operation
active_admin_sidebar copied to clipboard

Error on ActiveAdmin initializer

Open fabrouy opened this issue 7 years ago • 0 comments

Hello!

When I add this:

config.before_action do
  left_sidebar! if respond_to?(:left_sidebar!)
end

to my AA initializer I get:

`load_missing_constant': Circular dependency detected while autoloading constant User (RuntimeError)

The stacktrace is confusing but the line where I added the new code is mentioned.

Tested with AA 1.0.0 and 1.1.0

Am I doing something wrong?

fabrouy avatar Nov 30 '17 23:11 fabrouy