Sha256: 3ffe7dc78e741d0010b29154187cd029e0da8e24d7fd34bf147540e08444cc33

Contents?: true

Size: 674 Bytes

Versions: 7

Compression:

Stored size: 674 Bytes

Contents

# frozen_string_literal: true
module Decidim
  module Meetings
    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 :meetings, :meeting

        def meetings
          @meetings ||= Meeting.where(feature: current_feature)
        end

        def meeting
          @meeting ||= meetings.find(params[:id])
        end
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 2 rubygems

Version Path
decidim-meetings-0.0.6 app/controllers/decidim/meetings/admin/application_controller.rb
decidim-0.0.6 decidim-meetings/app/controllers/decidim/meetings/admin/application_controller.rb
decidim-meetings-0.0.5 app/controllers/decidim/meetings/admin/application_controller.rb
decidim-0.0.5 decidim-meetings/app/controllers/decidim/meetings/admin/application_controller.rb
decidim-0.0.4 decidim-meetings/app/controllers/decidim/meetings/admin/application_controller.rb
decidim-meetings-0.0.3 app/controllers/decidim/meetings/admin/application_controller.rb
decidim-0.0.3 decidim-meetings/app/controllers/decidim/meetings/admin/application_controller.rb