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

Version Path
decidim-core-0.27.9 app/cells/decidim/notifications_cell.rb
decidim-core-0.27.8 app/cells/decidim/notifications_cell.rb
decidim-core-0.27.7 app/cells/decidim/notifications_cell.rb
decidim-core-0.27.6 app/cells/decidim/notifications_cell.rb
decidim-core-0.26.10 app/cells/decidim/notifications_cell.rb
decidim-core-0.26.9 app/cells/decidim/notifications_cell.rb
decidim-core-0.27.5 app/cells/decidim/notifications_cell.rb
decidim-core-0.26.8 app/cells/decidim/notifications_cell.rb
decidim-core-0.27.4 app/cells/decidim/notifications_cell.rb
decidim-core-0.27.3 app/cells/decidim/notifications_cell.rb
decidim-core-0.26.7 app/cells/decidim/notifications_cell.rb
decidim-core-0.26.5 app/cells/decidim/notifications_cell.rb
decidim-core-0.27.2 app/cells/decidim/notifications_cell.rb
decidim-core-0.27.1 app/cells/decidim/notifications_cell.rb
decidim-core-0.26.4 app/cells/decidim/notifications_cell.rb
decidim-core-0.27.0 app/cells/decidim/notifications_cell.rb
decidim-core-0.26.3 app/cells/decidim/notifications_cell.rb
decidim-core-0.27.0.rc2 app/cells/decidim/notifications_cell.rb
decidim-core-0.27.0.rc1 app/cells/decidim/notifications_cell.rb
decidim-core-0.26.2 app/cells/decidim/notifications_cell.rb