Sha256: f1b331b4e5f69a9a3578de729fcc368018d996a2e30bc937b9d4fcd64bfe714e

Contents?: true

Size: 430 Bytes

Versions: 7

Compression:

Stored size: 430 Bytes

Contents

# frozen_string_literal: true

module Decidim
  class FollowingCell < Decidim::ViewModel
    include Decidim::CellsPaginateHelper
    include Decidim::ApplicationHelper
    include Decidim::Core::Engine.routes.url_helpers
    include Decidim::CardHelper

    def show
      render :show
    end

    def followings
      @followings ||= Kaminari.paginate_array(model.following_users).page(params[:page]).per(20)
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
decidim-core-0.15.2 app/cells/decidim/following_cell.rb
decidim-core-0.15.1 app/cells/decidim/following_cell.rb
decidim-core-0.15.0 app/cells/decidim/following_cell.rb
decidim-core-0.14.4 app/cells/decidim/following_cell.rb
decidim-core-0.14.3 app/cells/decidim/following_cell.rb
decidim-core-0.14.2 app/cells/decidim/following_cell.rb
decidim-core-0.14.1 app/cells/decidim/following_cell.rb