How to skip_before_filter in RailsAdmin

383 views
Skip to first unread message

Daniel Moore

unread,
May 14, 2013, 7:32:41 PM5/14/13
to rails...@googlegroups.com
I have a general authentication filter for my app (a simple json api for mobile) that is defined in ApplicationController. I want to ignore it when inside Rails Admin.

How do I configure Rails Admin to skip the before filter?

Thanks!

Benoit Bénézech

unread,
May 16, 2013, 4:23:52 AM5/16/13
to rails...@googlegroups.com
Subclass ApplicationController with FrontEndController and put your filter there. Then use the latter to subclass your own controllers.

Otherwise you can check the parents of the controller to remove the behavior when in RailsAdmin.

Reply all
Reply to author
Forward
0 new messages