Sha256: a9e1faf2583e14c746e2367a3d7ed5cbbe273b632d95f3be703002e9d75fed6a
Contents?: true
Size: 904 Bytes
Versions: 1
Compression:
Stored size: 904 Bytes
Contents
# frozen_string_literal: true module Decidim module Features # Controller from which all feature engines inherit from. It's in charge of # setting the appropiate layout, including necessary helpers, and overall # fooling the engine into thinking it's isolated. class BaseController < Decidim::ApplicationController layout "layouts/decidim/participatory_process" include NeedsParticipatoryProcess helper Decidim::TranslationsHelper helper Decidim::ParticipatoryProcessHelper helper_method :current_feature skip_authorize_resource before_action do authorize! :read, current_participatory_process end private def current_feature request.env["decidim.current_feature"] end def current_participatory_process request.env["decidim.current_participatory_process"] end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
decidim-core-0.0.1 | lib/decidim/features/base_controller.rb |