Class: Cms::UserController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- ApplicationController
- Cms::UserController
- Defined in:
- app/controllers/cms/user_controller.rb
Instance Method Summary collapse
-
#show ⇒ Object
Return information about the current user as json.
Methods inherited from ApplicationController
Instance Method Details
#show ⇒ Object
Return information about the current user as json. Can be used by cached html pages do create interactive elements.
4 5 6 |
# File 'app/controllers/cms/user_controller.rb', line 4 def show render json: Cms::UserPresenter.new(current_user) end |