Class: Gemgento::UsersController

Inherits:
ApplicationController show all
Defined in:
app/controllers/gemgento/users_controller.rb

Instance Method Summary collapse

Instance Method Details

#indexObject



7
8
9
10
11
12
13
14
# File 'app/controllers/gemgento/users_controller.rb', line 7

def index
  @user = current_user

  respond_to do |format|
    format.html
    format.json { render json: @user.as_json({ store: current_store }) }
  end
end

#showObject



16
17
18
19
20
21
22
23
# File 'app/controllers/gemgento/users_controller.rb', line 16

def show
  @user = current_user

  respond_to do |format|
    format.html
    format.json { render json: @user.as_json({ store: current_store }) }
  end
end