app/controllers/para/admin/base_controller.rb in para-0.5.4 vs app/controllers/para/admin/base_controller.rb in para-0.6.2

- old
+ new

@@ -6,11 +6,10 @@ if Para.config.authenticate_admin_method before_action Para.config.authenticate_admin_method end before_action :authorize_admin_access - before_action :load_component_sections layout 'para/admin' helper_method :current_admin @@ -28,13 +27,9 @@ private def authorize_admin_access authorize! :access, :admin - end - - def load_component_sections - @component_sections = Para::ComponentSection.ordered.includes(:components) end def self.load_and_authorize_component(options = {}) before_action do load_and_authorize_component(options)