Class: Zaikio::OAuthClient::TestHelper::TestSessionController
- Inherits:
-
ActionController::Base
- Object
- ActionController::Base
- Zaikio::OAuthClient::TestHelper::TestSessionController
- Defined in:
- lib/zaikio/oauth_client/test_helper.rb
Overview
rubocop:disable Rails/ApplicationController
Instance Method Summary collapse
Instance Method Details
#create ⇒ Object
33 34 35 36 37 |
# File 'lib/zaikio/oauth_client/test_helper.rb', line 33 def create session[params[:key]] = params[:id] head :ok end |
#show ⇒ Object
25 26 27 28 29 30 31 |
# File 'lib/zaikio/oauth_client/test_helper.rb', line 25 def show if session[params[:key]].nil? head :no_content else render plain: session[params[:key]] end end |