Class: LesliShield::SessionsController

Inherits:
ApplicationController show all
Defined in:
app/controllers/lesli_shield/sessions_controller.rb

Instance Method Summary collapse

Instance Method Details

#destroyObject

DELETE /sessions/1



23
24
# File 'app/controllers/lesli_shield/sessions_controller.rb', line 23

def destroy
end

#indexObject

GET /sessions



6
7
8
9
10
11
12
# File 'app/controllers/lesli_shield/sessions_controller.rb', line 6

def index
    @sessions = respond_with_pagination(UserSessionService.new(current_user, query).index())
    respond_with_lesli(
        :html => @sessions,
        :json => @sessions
    )
end

#showObject

GET /sessions/1



15
16
# File 'app/controllers/lesli_shield/sessions_controller.rb', line 15

def show
end

#updateObject

PATCH/PUT /sessions/1



19
20
# File 'app/controllers/lesli_shield/sessions_controller.rb', line 19

def update
end