Sha256: 87b3e0b53b1f6dca5daef2f2cb7ca5e26712ed96179b17f3757db409a165828b
Contents?: true
Size: 781 Bytes
Versions: 3
Compression:
Stored size: 781 Bytes
Contents
# frozen_string_literal: true module Decidim module Admin # The main application controller that inherits from Rails. class ApplicationController < ActionController::Base include NeedsOrganization include NeedsAuthorization include FormFactory include LocaleSwitcher helper Decidim::DecidimFormHelper helper Decidim::LanguageChooserHelper 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::Base end end end end
Version data entries
3 entries across 3 versions & 2 rubygems