{"action":"opened","issue":{"url":"https://api.github.com/repos/activeadmin/activeadmin/issues/4147","labels_url":"https://api.github.com/repos/activeadmin/activeadmin/issues/4147/labels{/name}","comments_url":"https://api.github.com/repos/activeadmin/activeadmin/issues/4147/comments","events_url":"https://api.github.com/repos/activeadmin/activeadmin/issues/4147/events","html_url":"https://github.com/activeadmin/activeadmin/issues/4147","id":109501959,"number":4147,"title":"ActiveAdmin::BaseController inherits before actions from the ApplicationController","user":{"login":"asok","id":120457,"avatar_url":"https://avatars.githubusercontent.com/u/120457?v=3","gravatar_id":"","url":"https://api.github.com/users/asok","html_url":"https://github.com/asok","followers_url":"https://api.github.com/users/asok/followers","following_url":"https://api.github.com/users/asok/following{/other_user}","gists_url":"https://api.github.com/users/asok/gists{/gist_id}","starred_url":"https://api.github.com/users/asok/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/asok/subscriptions","organizations_url":"https://api.github.com/users/asok/orgs","repos_url":"https://api.github.com/users/asok/repos","events_url":"https://api.github.com/users/asok/events{/privacy}","received_events_url":"https://api.github.com/users/asok/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-10-02T14:30:13Z","updated_at":"2015-10-02T14:30:13Z","closed_at":null,"body":"Hi,\r\nI've setup my app to use activeadmin.\r\nAnd from the rails console I see:\r\n```\r\nActiveAdmin::BaseController._process_action_callbacks.map(&:filter)\r\n=> [:verify_authenticity_token,\r\n :verify_same_origin_request,\r\n :authenticate_user!,\r\n :set_locale,\r\n :store_last_action_name,\r\n :store_return_to_location,\r\n :only_render_implemented_actions,\r\n :authenticate_active_admin_user,\r\n :set_current_tab]\r\n```\r\nThere are 2 authentication callbacks. The one setup by ActiveAdmin - `authenticate_active_admin_user`, and one setup by me in the `ApplicationController` - `authenticate_user!`.\r\nSo when I'm not logged in and try to access `/admin` path in my app I'm redirected to the `new_user_session_path` instead of `new_admin_session_path` because of the actions precedence.\r\n\r\nAs a workaround I've monkey patched the `BaseController` to skip `authenticate_user!` method.\r\n\r\nAll in all it looks counter intuitive for me. Can't `BaseController` include `InheritedResources::DSL` instead  of inheriting from `InheritedResources::Base`. That way it wouldn't have the application's controller callbacks?"}}