Skip to content

Commit 3bd9e9b

Browse files
author
James McKinney
committed
use before_filter to disable sidebar
1 parent 782ca4d commit 3bd9e9b

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

lib/active_admin/mongoid/resource.rb

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,11 @@ def resource_table_name
1010

1111
ActiveAdmin::ResourceController # autoload
1212
class ActiveAdmin::ResourceController
13-
# Disable filters
14-
def initialize
15-
super
13+
before_filter :skip_sidebar!
14+
15+
protected
16+
17+
def skip_sidebar!
1618
@skip_sidebar = true
1719
end
1820

0 commit comments

Comments
 (0)