Sha256: 38eb7e2d941fb2578fd097a416b141cee0e3395d5407fef9d02bac579d96a9bc
Contents?: true
Size: 466 Bytes
Versions: 48
Compression:
Stored size: 466 Bytes
Contents
# 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
Version data entries
48 entries across 48 versions & 1 rubygems