Sha256: 90c5a34412ed645d6a88bcdbdb0f368a621400624aed2df7f9dff1e666b2019a
Contents?: true
Size: 723 Bytes
Versions: 6
Compression:
Stored size: 723 Bytes
Contents
# frozen_string_literal: true module Decidim class FollowingCell < Decidim::ViewModel include Decidim::CellsPaginateHelper 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_users_followings).page(params[:page]).per(20) end def non_public_followings? model.followings_blocked? end def validation_messages [].tap do |keys| keys << t("decidim.following.no_followings") if public_followings.blank? keys << t("decidim.following.non_public_followings") if non_public_followings? end end end end
Version data entries
6 entries across 6 versions & 1 rubygems