Sha256: a61da5e9e7e61c96540ef1d3b781d9283ac449d732b2cd7206fec99e0de306da
Contents?: true
Size: 540 Bytes
Versions: 26
Compression:
Stored size: 540 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 public_followings @public_followings ||= Kaminari.paginate_array(model.public_followings).page(params[:page]).per(20) end def non_public_followings? public_followings.count < model.following_count end end end
Version data entries
26 entries across 26 versions & 1 rubygems