Sha256: ed6b07be4be8fc3316e1ed8b2e82b88ac4844bc4f0bb73f8baa66bd6fc2120e9

Contents?: true

Size: 464 Bytes

Versions: 9

Compression:

Stored size: 464 Bytes

Contents

# frozen_string_literal: true

module Decidim
  # The controller to handle the user's public profile page.
  class ProfilesController < Decidim::ApplicationController
    skip_authorization_check

    helper Decidim::Messaging::ConversationHelper

    helper_method :user

    def show; end

    private

    def user
      @user ||= Decidim::User.find_by!(
        nickname: params[:nickname],
        organization: current_organization
      )
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
decidim-core-0.11.2 app/controllers/decidim/profiles_controller.rb
decidim-core-0.11.1 app/controllers/decidim/profiles_controller.rb
decidim-core-0.11.0.pre1 app/controllers/decidim/profiles_controller.rb
decidim-core-0.10.1 app/controllers/decidim/profiles_controller.rb
decidim-core-0.10.0 app/controllers/decidim/profiles_controller.rb
decidim-core-0.9.3 app/controllers/decidim/profiles_controller.rb
decidim-core-0.9.2 app/controllers/decidim/profiles_controller.rb
decidim-core-0.9.1 app/controllers/decidim/profiles_controller.rb
decidim-core-0.9.0 app/controllers/decidim/profiles_controller.rb