Sha256: f847f42b268d1ac6f42bf941a0bdc2339ea36c3ca599695be24b3a6ffb36b760

Contents?: true

Size: 483 Bytes

Versions: 61

Compression:

Stored size: 483 Bytes

Contents

# frozen_string_literal: true

module Decidim
  # This cell is intended to be used on profiles.
  class GroupsCell < Decidim::ViewModel
    include Decidim::CellsPaginateHelper
    include Decidim::ApplicationHelper
    include Decidim::Core::Engine.routes.url_helpers
    include Decidim::CardHelper

    def show
      render :show
    end

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

Version data entries

61 entries across 61 versions & 1 rubygems

Version Path
decidim-core-0.23.3 app/cells/decidim/groups_cell.rb
decidim-core-0.23.2 app/cells/decidim/groups_cell.rb
decidim-core-0.23.1 app/cells/decidim/groups_cell.rb
decidim-core-0.23.1.rc1 app/cells/decidim/groups_cell.rb
decidim-core-0.23.0 app/cells/decidim/groups_cell.rb
decidim-core-0.22.0 app/cells/decidim/groups_cell.rb
decidim-core-0.21.0 app/cells/decidim/groups_cell.rb
decidim-core-0.20.1 app/cells/decidim/groups_cell.rb
decidim-core-0.20.0 app/cells/decidim/groups_cell.rb
decidim-core-0.19.1 app/cells/decidim/groups_cell.rb
decidim-core-0.18.1 app/cells/decidim/groups_cell.rb
decidim-core-0.19.0 app/cells/decidim/groups_cell.rb
decidim-core-0.17.2 app/cells/decidim/groups_cell.rb
decidim-core-0.18.0 app/cells/decidim/groups_cell.rb
decidim-core-0.17.1 app/cells/decidim/groups_cell.rb
decidim-core-0.16.1 app/cells/decidim/groups_cell.rb
decidim-core-0.17.0 app/cells/decidim/groups_cell.rb
decidim-core-0.16.0 app/cells/decidim/groups_cell.rb
decidim-core-0.15.2 app/cells/decidim/groups_cell.rb
decidim-core-0.15.1 app/cells/decidim/groups_cell.rb