Sha256: ce429bdcd90c321b9b73e83d9a1913d0e59407c31b1a51c47050585d358f2533
Contents?: true
Size: 702 Bytes
Versions: 6
Compression:
Stored size: 702 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
6 entries across 6 versions & 2 rubygems