Sha256: 57698cac0f1178054505099e59c829e71511bd13ba8fd1dfede1d9f493475947

Contents?: true

Size: 674 Bytes

Versions: 56

Compression:

Stored size: 674 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::Features::BaseController`, which
      # override its layout and provide all kinds of useful methods.
      class ApplicationController < Decidim::Admin::Features::BaseController
        helper_method :projects, :project

        def projects
          @projects ||= Project.where(feature: current_feature)
        end

        def project
          @project ||= projects.find(params[:id])
        end
      end
    end
  end
end

Version data entries

56 entries across 56 versions & 2 rubygems

Version Path
decidim-budgets-0.10.1 app/controllers/decidim/budgets/admin/application_controller.rb
decidim-budgets-0.10.0 app/controllers/decidim/budgets/admin/application_controller.rb
decidim-budgets-0.9.3 app/controllers/decidim/budgets/admin/application_controller.rb
decidim-budgets-0.9.2 app/controllers/decidim/budgets/admin/application_controller.rb
decidim-budgets-0.9.1 app/controllers/decidim/budgets/admin/application_controller.rb
decidim-budgets-0.9.0 app/controllers/decidim/budgets/admin/application_controller.rb
decidim-budgets-0.8.4 app/controllers/decidim/budgets/admin/application_controller.rb
decidim-budgets-0.8.3 app/controllers/decidim/budgets/admin/application_controller.rb
decidim-budgets-0.8.2 app/controllers/decidim/budgets/admin/application_controller.rb
decidim-budgets-0.8.1 app/controllers/decidim/budgets/admin/application_controller.rb
decidim-budgets-0.8.0 app/controllers/decidim/budgets/admin/application_controller.rb
decidim-budgets-0.7.4 app/controllers/decidim/budgets/admin/application_controller.rb
decidim-budgets-0.7.3 app/controllers/decidim/budgets/admin/application_controller.rb
decidim-budgets-0.7.2 app/controllers/decidim/budgets/admin/application_controller.rb
decidim-budgets-0.7.1 app/controllers/decidim/budgets/admin/application_controller.rb
decidim-budgets-0.7.0 app/controllers/decidim/budgets/admin/application_controller.rb
decidim-budgets-0.6.8 app/controllers/decidim/budgets/admin/application_controller.rb
decidim-0.6.8 decidim-budgets/app/controllers/decidim/budgets/admin/application_controller.rb
decidim-budgets-0.6.7 app/controllers/decidim/budgets/admin/application_controller.rb
decidim-0.6.7 decidim-budgets/app/controllers/decidim/budgets/admin/application_controller.rb