Skip before filter with Active Admin

前端 未结 4 946
逝去的感伤
逝去的感伤 2021-01-11 14:19

I am using devise and recently added active admin, which created a separate table of admin_users to keep admins.

All works fine with Active Admin when I try to log i

4条回答
  •  情话喂你
    2021-01-11 14:50

    I couldn't make the solutions of @fringd and @coreyward to work on Rails4 (using ActiveAdmin master branch).

    So, I've moved the filter methods (I have two filters: authorize_user! and check_user_status) to a new Concern, and included this created module into the Controllers which had those filters (except for the ApplicationController, which should remain clean).

    Then restarted the server, and problem solved.

提交回复
热议问题