Skip to content

Commit

Permalink
use before_filter to disable sidebar
Browse files Browse the repository at this point in the history
  • Loading branch information
James McKinney committed Jul 1, 2012
1 parent 782ca4d commit 3bd9e9b
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions lib/active_admin/mongoid/resource.rb
Expand Up @@ -10,9 +10,11 @@ def resource_table_name

ActiveAdmin::ResourceController # autoload
class ActiveAdmin::ResourceController
# Disable filters
def initialize
super
before_filter :skip_sidebar!

protected

def skip_sidebar!
@skip_sidebar = true
end

Expand Down

0 comments on commit 3bd9e9b

Please sign in to comment.