Sha256: 2ec80570888878488846d4ff0fd8817f874c627587bd5ad3fc0a924ea80c7d7b
Contents?: true
Size: 703 Bytes
Versions: 56
Compression:
Stored size: 703 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).page(params[:page]).per(15) end def meeting @meeting ||= meetings.find(params[:id]) end end end end end
Version data entries
56 entries across 56 versions & 2 rubygems