Sha256: c97243bd629cdc91a325d4d7e4788cc6f4903532ef1997331a4ca07a02cd14e1
Contents?: true
Size: 1014 Bytes
Versions: 32
Compression:
Stored size: 1014 Bytes
Contents
# frozen_string_literal: true require "active_support/concern" module Decidim # This concern groups methods and helpers needed by Devise controllers. module DeviseControllers extend ActiveSupport::Concern included do include Decidim::NeedsOrganization include Decidim::LocaleSwitcher include NeedsAuthorization skip_authorization_check helper Decidim::TranslationsHelper helper Decidim::MetaTagsHelper helper Decidim::DecidimFormHelper helper Decidim::LanguageChooserHelper helper Decidim::CookiesHelper helper Decidim::ReplaceButtonsHelper helper Decidim::LayoutHelper helper Decidim::MenuHelper helper Decidim::OmniauthHelper layout "layouts/decidim/application" 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::Abilities::BaseAbility end end end
Version data entries
32 entries across 32 versions & 2 rubygems