Skip to content

Commit

Permalink
Controller filters added to BaseController (replaces ResourceControll…
Browse files Browse the repository at this point in the history
…er and PageController).
  • Loading branch information
yorch committed Sep 18, 2012
1 parent 56fcb5f commit 8db507b
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions lib/active_admin/application.rb
Expand Up @@ -219,23 +219,19 @@ def load_default_namespace
# ActiveAdmin.before_filter :authenticate_admin!
#
def before_filter(*args, &block)
ResourceController.before_filter(*args, &block)
PageController.before_filter(*args, &block)
BaseController.before_filter(*args, &block)
end

def skip_before_filter(*args, &block)
ResourceController.skip_before_filter(*args, &block)
PageController.skip_before_filter(*args, &block)
BaseController.skip_before_filter(*args, &block)
end

def after_filter(*args, &block)
ResourceController.after_filter(*args, &block)
PageController.after_filter(*args, &block)
BaseController.after_filter(*args, &block)
end

def around_filter(*args, &block)
ResourceController.around_filter(*args, &block)
PageController.after_filter(*args, &block)
BaseController.around_filter(*args, &block)
end

# Helper method to add a dashboard section
Expand Down

0 comments on commit 8db507b

Please sign in to comment.