Sha256: 2ff1657d594617c1f1c07c75147a05d6b1d07839092596da989be0534693d801
Contents?: true
Size: 682 Bytes
Versions: 30
Compression:
Stored size: 682 Bytes
Contents
# frozen_string_literal: true module Decidim module Budgets module Admin # This controller is the abstract class from which all other controllers of # this engine inherit. # # Note that it inherits from `Decidim::Components::BaseController`, which # override its layout and provide all kinds of useful methods. class ApplicationController < Decidim::Admin::Components::BaseController helper_method :projects, :project def projects @projects ||= Project.where(component: current_component) end def project @project ||= projects.find(params[:id]) end end end end end
Version data entries
30 entries across 30 versions & 1 rubygems