-
-
Notifications
You must be signed in to change notification settings - Fork 391
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
Unable to autoload constant Base #472
Comments
I ran into this trying to get module AppName
class Application < Rails::Application
initializer :load_inherited_resources_base, before: 'active_admin.mongoid.resource_controller' do
require 'application_helper'
require 'devise_helper'
require 'preview_helper'
require 'application_controller'
ir_gem_path = Bundler.rubygems.find_name('inherited_resources').first.full_gem_path
require "#{ir_gem_path}/app/controllers/inherited_resources/base"
end
end
end Hopefully anyone looking for a solution to this finds this 🥳 |
I'm running into this, though very intermittently / randomly, and I'm struggling to reproduce the exception. It seems like there are two associated exceptions in my case (one shadows the other):
In case others see this too, here are two very similar issues that discuss this kind of problem (which seems related to Ruby's |
I was able to fix this error by using
|
This issue was originally reported at activeadmin/activeadmin#2908
Current workarounds (from the engine) are:
Base
classesBase
classI guess it could be fixed rescuing
NameError, LoadError
at methodinitialize_resources_class_accessors!
frominherited_resources/lib/inherited_resources/class_methods.rb
(as done at #416)The text was updated successfully, but these errors were encountered: