Sha256: 1f6f358c2d091ce08894bdae7b456e4478ff6acd8f19363b2d11cbf2840cb634
Contents?: true
Size: 1.21 KB
Versions: 34
Compression:
Stored size: 1.21 KB
Contents
# frozen_string_literal: true module Decidim module Admin # The main application controller that inherits from Rails. class ApplicationController < ::DecidimController include NeedsOrganization include NeedsAuthorization include FormFactory include LocaleSwitcher include PayloadInfo helper Decidim::Admin::ApplicationHelper helper Decidim::Admin::AttributesDisplayHelper helper Decidim::Admin::SettingsHelper helper Decidim::Admin::IconLinkHelper helper Decidim::Admin::MenuHelper helper Decidim::Admin::ScopesHelper helper Decidim::DecidimFormHelper helper Decidim::ReplaceButtonsHelper helper Decidim::ScopesHelper helper Decidim::TranslationsHelper helper Decidim::LanguageChooserHelper helper Decidim::FeaturePathHelper protect_from_forgery with: :exception, prepend: true def user_not_authorized_path decidim_admin.root_path end # Overwrites `cancancan`'s method to point to the correct ability class, # since the gem expects the ability class to be in the root namespace. def current_ability_klass Decidim::Admin::Abilities::BaseAbility end end end end
Version data entries
34 entries across 34 versions & 2 rubygems