Class: Decidim::GroupsCell
- Inherits:
-
ViewModel
- Object
- ViewModel
- Decidim::GroupsCell
- 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
Instance Method Details
#show ⇒ Object
13 14 15 |
# File 'decidim-core/app/cells/decidim/groups_cell.rb', line 13 def show render :show end |
#user_groups ⇒ Object
17 18 19 |
# File 'decidim-core/app/cells/decidim/groups_cell.rb', line 17 def user_groups @user_groups ||= Decidim::UserGroups::AcceptedUserGroups.for(model).page(params[:page]).per(20) end |
#validation_messages ⇒ Object
21 22 23 |
# File 'decidim-core/app/cells/decidim/groups_cell.rb', line 21 def [t("decidim.groups.no_user_groups")] if user_groups.blank? end |