Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
28 lines (23 sloc) 642 Bytes
# frozen_string_literal: true
module Decidim
# The controller to show all the last activities in a Decidim Organization.
class UserActivitiesController < Decidim::ApplicationController
include Paginable
include UserGroups
helper Decidim::ResourceHelper
helper_method :activities, :user
private
def user
@user ||= current_organization.users.find_by(nickname: params[:nickname])
end
def activities
@activities ||= paginate(
ActivitySearch.new(
organization: current_organization,
user: user,
resource_type: "all"
).run
)
end
end
end
You can’t perform that action at this time.