Sha256: 6f6026c1d825e656bd76e09264aebaa1f7469ba9e09ea736761ac545afb45323
Contents?: true
Size: 241 Bytes
Versions: 24
Compression:
Stored size: 241 Bytes
Contents
module ControllerMacros def access_anonymous sign_out :user User.new end def login_user(user) @request ||= controller.request @request.env['devise.mapping'] = Devise.mappings[:user] sign_in user user end end
Version data entries
24 entries across 24 versions & 1 rubygems