Sha256: 7f0a791cbd6010c1d514d44a7ea4fbb79439c9de7b6826b2fa64dae6170e5cf9

Contents?: true

Size: 443 Bytes

Versions: 3

Compression:

Stored size: 443 Bytes

Contents

# frozen_string_literal: true
module Decidim
  # The main application controller that inherits from Rails.
  class ApplicationController < ActionController::Base
    include Decidim::NeedsOrganization
    include Decidim::LocaleSwitcher
    include NeedsAuthorization
    protect_from_forgery with: :exception, prepend: true

    layout "layouts/decidim/application"

    def user_not_authorized_path
      decidim.root_path
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
decidim-core-0.0.3 app/controllers/decidim/application_controller.rb
decidim-core-0.0.2 app/controllers/decidim/application_controller.rb
decidim-core-0.0.1 app/controllers/decidim/application_controller.rb