Class: Puffer::Sessions::Base

Inherits:
ApplicationController
  • Object
show all
Defined in:
lib/puffer/backends/controllers/sessions/base.rb

Overview

Puffer::SessionsBase is a base class for any Admin::SessionsController implementation by default implemented basic auth through PufferUser. See Puffer::SessionsDeviseBase for alternative implementation example.

Direct Known Subclasses

Clearance, Devise, Simple

Instance Method Summary collapse

Instance Method Details

#createObject



28
29
30
31
32
33
34
35
# File 'lib/puffer/backends/controllers/sessions/base.rb', line 28

def create
  # @record = resource.new_member
  # if @record.save
  #   redirect_back_or admin_root_url
  # else
  #   render 'new'
  # end
end

#destroyObject



37
38
39
40
# File 'lib/puffer/backends/controllers/sessions/base.rb', line 37

def destroy
  # current_user_session.destroy
  # redirect_to new_admin_session_url
end

#newObject



24
25
26
# File 'lib/puffer/backends/controllers/sessions/base.rb', line 24

def new
  # @record = resource.new_member
end