Sha256: e01da592093700d5f1696b5b8f75bf6c664f30ed9ad43ce9c4cc6c29f6a84009
Contents?: true
Size: 753 Bytes
Versions: 4
Compression:
Stored size: 753 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::Components::BaseController`, which # override its layout and provide all kinds of useful methods. class ApplicationController < Decidim::Admin::Components::BaseController helper Decidim::ApplicationHelper helper_method :meetings, :meeting def meetings @meetings ||= Meeting.where(component: current_component).page(params[:page]).per(15) end def meeting @meeting ||= meetings.find(params[:id]) end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems