Class: Character::ApplicationController

Inherits:
ActionController::Base
  • Object
show all
Includes:
AuthConcern, InstanceConcern
Defined in:
app/controllers/character/application_controller.rb

Overview

Author: Alexander Kravets

Slate, 2013

Instance Method Summary collapse

Instance Method Details

#indexObject



12
13
14
# File 'app/controllers/character/application_controller.rb', line 12

def index
  render 'character/character'
end

#loginObject



16
17
18
# File 'app/controllers/character/application_controller.rb', line 16

def 
  respond_to_browserid
end

#logoutObject



20
21
22
23
24
25
26
27
28
# File 'app/controllers/character/application_controller.rb', line 20

def logout
  logout_browserid

  if params['redirect']
    redirect_to params['redirect']
  else
    head :ok
  end
end