Sha256: 921f91f04b1ab965b0e6e3db78e10da27d19110f6e88ba42bf62b27e42e41c4b
Contents?: true
Size: 600 Bytes
Versions: 41
Compression:
Stored size: 600 Bytes
Contents
# frozen_string_literal: true module Decidim module Api # Base controller for `decidim-api`. All other controllers inherit from this. class ApplicationController < ::DecidimController skip_before_action :verify_authenticity_token include NeedsOrganization include NeedsAuthorization include ImpersonateUsers # 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::Abilities::BaseAbility end end end end
Version data entries
41 entries across 41 versions & 2 rubygems