Class: Cms::UserController

Inherits:
ApplicationController show all
Defined in:
app/controllers/cms/user_controller.rb

Instance Method Summary collapse

Methods inherited from ApplicationController

#no_browser_caching

Instance Method Details

#showObject

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