Class: Decidim::GroupsCell

Inherits:
ViewModel
  • Object
show all
Includes:
ApplicationHelper, CardHelper, CellsPaginateHelper, LayoutHelper
Defined in:
decidim-core/app/cells/decidim/groups_cell.rb

Overview

This cell is intended to be used on profiles.

Instance Method Summary collapse

Methods included from CardHelper

#card_for

Instance Method Details

#showObject


12
13
14
# File 'decidim-core/app/cells/decidim/groups_cell.rb', line 12

def show
  render :show
end

#user_groupsObject


16
17
18
# File 'decidim-core/app/cells/decidim/groups_cell.rb', line 16

def user_groups
  @user_groups ||= Decidim::UserGroups::AcceptedUserGroups.for(model).page(params[:page]).per(20)
end