Class: Zaikio::OAuthClient::TestHelper::TestSessionController

Inherits:
ActionController::Base
  • Object
show all
Defined in:
lib/zaikio/oauth_client/test_helper.rb

Overview

rubocop:disable Rails/ApplicationController

Instance Method Summary collapse

Instance Method Details

#createObject



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

#showObject



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