# frozen_string_literal: true module Decidim class NotificationsCell < Decidim::ViewModel include Decidim::CellsPaginateHelper include Decidim::IconHelper 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