Module: SimplestAuth::SessionsController

Extended by:
ActiveSupport::Concern
Defined in:
lib/simplest_auth/sessions_controller.rb

Defined Under Namespace

Modules: ClassMethods

Instance Method Summary collapse

Instance Method Details

#createObject



21
22
23
# File 'lib/simplest_auth/sessions_controller.rb', line 21

def create
  sign_user_in_or_render
end

#destroyObject



25
26
27
# File 'lib/simplest_auth/sessions_controller.rb', line 25

def destroy
  sign_user_out
end

#newObject



17
18
19
# File 'lib/simplest_auth/sessions_controller.rb', line 17

def new
  @session = session_class.new
end