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

Version Path
decidim-core-0.8.4 app/controllers/concerns/decidim/devise_controllers.rb
decidim-core-0.8.3 app/controllers/concerns/decidim/devise_controllers.rb
decidim-core-0.8.2 app/controllers/concerns/decidim/devise_controllers.rb
decidim-core-0.8.1 app/controllers/concerns/decidim/devise_controllers.rb
decidim-core-0.8.0 app/controllers/concerns/decidim/devise_controllers.rb
decidim-core-0.7.4 app/controllers/concerns/decidim/devise_controllers.rb
decidim-core-0.7.3 app/controllers/concerns/decidim/devise_controllers.rb
decidim-core-0.7.2 app/controllers/concerns/decidim/devise_controllers.rb
decidim-core-0.7.1 app/controllers/concerns/decidim/devise_controllers.rb
decidim-core-0.7.0 app/controllers/concerns/decidim/devise_controllers.rb
decidim-core-0.6.8 app/controllers/concerns/decidim/devise_controllers.rb
decidim-0.6.8 decidim-core/app/controllers/concerns/decidim/devise_controllers.rb
decidim-core-0.6.7 app/controllers/concerns/decidim/devise_controllers.rb
decidim-0.6.7 decidim-core/app/controllers/concerns/decidim/devise_controllers.rb
decidim-core-0.6.6 app/controllers/concerns/decidim/devise_controllers.rb
decidim-0.6.6 decidim-core/app/controllers/concerns/decidim/devise_controllers.rb
decidim-core-0.6.5 app/controllers/concerns/decidim/devise_controllers.rb
decidim-0.6.5 decidim-core/app/controllers/concerns/decidim/devise_controllers.rb
decidim-core-0.6.4 app/controllers/concerns/decidim/devise_controllers.rb
decidim-0.6.4 decidim-core/app/controllers/concerns/decidim/devise_controllers.rb