Class: Gemgento::UsersController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- ApplicationController
- Gemgento::UsersController
- Defined in:
- app/controllers/gemgento/users_controller.rb
Instance Method Summary collapse
Instance Method Details
#index ⇒ Object
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 |
#show ⇒ Object
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 |