Class: Decidim::FollowersCell
- Inherits:
-
ViewModel
- Object
- ViewModel
- Decidim::FollowersCell
- Includes:
- CardHelper, CellsPaginateHelper
- Defined in:
- app/cells/decidim/followers_cell.rb
Instance Method Summary collapse
Methods included from CardHelper
Methods included from CellsPaginateHelper
Methods included from PaginateHelper
Instance Method Details
#followers ⇒ Object
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 |
#show ⇒ Object
9 10 11 |
# File 'app/cells/decidim/followers_cell.rb', line 9 def show render :show end |
#validation_messages ⇒ Object
17 18 19 |
# File 'app/cells/decidim/followers_cell.rb', line 17 def [t("decidim.followers.no_followers")] if followers.blank? end |