Sha256: ecd35fb590da417386efe1d0b38a8d23d1a2fe69bc44af7a5d7358238d4f55bc

Contents?: true

Size: 785 Bytes

Versions: 5

Compression:

Stored size: 785 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
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
decidim-core-0.4.4 app/controllers/concerns/decidim/devise_controllers.rb
decidim-core-0.4.2 app/controllers/concerns/decidim/devise_controllers.rb
decidim-core-0.4.1 app/controllers/concerns/decidim/devise_controllers.rb
decidim-core-0.4.3 app/controllers/concerns/decidim/devise_controllers.rb
decidim-core-0.4.0 app/controllers/concerns/decidim/devise_controllers.rb