lib/active_admin/base_controller.rb in activeadmin-2.8.0 vs lib/active_admin/base_controller.rb in activeadmin-2.8.1
- old
+ new
@@ -1,7 +1,7 @@
-require 'active_admin/base_controller/authorization'
-require 'active_admin/base_controller/menu'
+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
@@ -67,14 +67,14 @@
# because these actions are subclasses of the Base page (which implements
# all the required layout code)
# 2. If we're rendering a custom action, we'll use the active_admin layout so
# that users can render any template inside Active Admin.
def determine_active_admin_layout
- ACTIVE_ADMIN_ACTIONS.include?(params[:action].to_sym) ? false : 'active_admin'
+ ACTIVE_ADMIN_ACTIONS.include?(params[:action].to_sym) ? false : "active_admin"
end
def active_admin_root
- controller, action = active_admin_namespace.root_to.split '#'
+ controller, action = active_admin_namespace.root_to.split "#"
{ controller: controller, action: action }
end
end
end