lib/active_admin/base_controller.rb in activeadmin-0.6.6 vs lib/active_admin/base_controller.rb in activeadmin-1.0.0.pre1

- old
+ new

@@ -1,15 +1,14 @@ -require 'inherited_resources' - require 'active_admin/base_controller/authorization' require 'active_admin/base_controller/menu' module ActiveAdmin # BaseController for ActiveAdmin. # It implements ActiveAdmin controllers core features. class BaseController < ::InheritedResources::Base helper ::ActiveAdmin::ViewHelpers + helper_method :env layout :determine_active_admin_layout before_filter :only_render_implemented_actions before_filter :authenticate_active_admin_user @@ -21,10 +20,10 @@ # Reference to the Resource object which initialized # this controller attr_accessor :active_admin_config end - # By default Rails will render un-implemented actions when the view exists. Becuase Active + # By default Rails will render un-implemented actions when the view exists. Because Active # Admin allows you to not render any of the actions by using the #actions method, we need # to check if they are implemented. def only_render_implemented_actions raise AbstractController::ActionNotFound unless action_methods.include?(params[:action]) end