Sha256: a5c86ce785041fd76bd64a00e6f6dccb90265abb5524a219ade86ed459d1ebf4
Contents?: true
Size: 290 Bytes
Versions: 4
Compression:
Stored size: 290 Bytes
Contents
class SessionsController < ApplicationController def create warden.authenticate!(scope: :<%= resource_name %>) redirect_to root_url, notice: t('.logged_in') end def destroy warden.logout(:<%=resource_name %>) redirect_to root_url, notice: t('.logged_out') end end
Version data entries
4 entries across 4 versions & 1 rubygems