Sha256: 88fcec21b316b088339963f21cd50b28cea1624a938eb96a481a3d6b773a446f
Contents?: true
Size: 434 Bytes
Versions: 24
Compression:
Stored size: 434 Bytes
Contents
# frozen_string_literal: true module Decidim class NotificationsCell < Decidim::ViewModel include Decidim::CellsPaginateHelper include Decidim::Core::Engine.routes.url_helpers helper_method :notifications def show render :show end private def notifications @notifications ||= model.notifications.includes(:resource).order(created_at: :desc).page(params[:page]).per(50) end end end
Version data entries
24 entries across 24 versions & 1 rubygems