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

ActiveAdmin Inherited Everything From my Application Contrller #3143

Closed
robertomiranda opened this Issue May 16, 2014 · 3 comments

Comments

Projects
None yet
4 participants
@robertomiranda
Copy link

robertomiranda commented May 16, 2014

I need to be logged in the main site in order to access to the admin site

Since I have something like this

class ApplicationController <ActionController::Base
  before :authenticate_user!
end

Is really annoying this, I solved the issue creating another controller called BaseController

There's another way to solve this here?

ref activeadmin/inherited_resources#356

@mindhalt

This comment has been minimized.

Copy link
Contributor

mindhalt commented May 16, 2014

You can skip before actions.
Try adding

ActiveAdmin.setup do |config|
  config.skip_before_filter :authenticate_user!
end

in config/initializers/active_admin.rb

Will it help?

@timoschilling

This comment has been minimized.

Copy link
Member

timoschilling commented Oct 16, 2014

You are using devise? Than you don't need before :authenticate_user! in your ApplicationController.

@seanlinsley

This comment has been minimized.

Copy link
Member

seanlinsley commented Oct 21, 2014

IR isn't accepting new features, so there's nothing we can do short of replacing or forking it.

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