Class: Decidim::FollowersCell

Inherits:
ViewModel
  • Object
show all
Includes:
CardHelper, CellsPaginateHelper
Defined in:
app/cells/decidim/followers_cell.rb

Instance Method Summary collapse

Methods included from CardHelper

#card_for

Methods included from CellsPaginateHelper

#paginate, #per_page

Methods included from PaginateHelper

#decidim_paginate

Instance Method Details

#followersObject



13
14
15
# File 'app/cells/decidim/followers_cell.rb', line 13

def followers
  @followers ||= model.followers.not_blocked.page(params[:page]).per(20)
end

#showObject



9
10
11
# File 'app/cells/decidim/followers_cell.rb', line 9

def show
  render :show
end

#validation_messagesObject



17
18
19
# File 'app/cells/decidim/followers_cell.rb', line 17

def validation_messages
  [t("decidim.followers.no_followers")] if followers.blank?
end