lib/active_admin/page_controller.rb in activeadmin-1.0.0.pre2 vs lib/active_admin/page_controller.rb in activeadmin-1.0.0.pre3
- old
+ new
@@ -6,10 +6,14 @@
# Active admin actions don't require layout. All custom actions do.
ACTIVE_ADMIN_ACTIONS = [:index]
actions :index
- before_filter :authorize_access!
+ if ActiveAdmin::Dependency.rails >= 4
+ before_action :authorize_access!
+ else
+ before_filter :authorize_access!
+ end
def index(options={}, &block)
render "active_admin/page/index"
end