Sha256: 07f47693dd20dd51a5199fa9a0ad3b0c6801091999eb7e4744f67b99a4df1c9f

Contents?: true

Size: 298 Bytes

Versions: 4

Compression:

Stored size: 298 Bytes

Contents

module NippoCore
  class UsersController < ApplicationController
    before_action :authenticate_user!

    def show
      @created_groups = current_user.created_groups.order(created_at: :desc).limit(5)
      @joined_groups = current_user.groups.order(created_at: :desc).limit(3)
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
nippo_core-1.0.1 app/controllers/nippo_core/users_controller.rb
nippo_core-1.0.0 app/controllers/nippo_core/users_controller.rb
nippo_core-0.3.0 app/controllers/nippo_core/users_controller.rb
nippo_core-0.2.0 app/controllers/nippo_core/users_controller.rb