Sha256: 9c59995cff0d575ed86d98ef09dccb3599bd59eb86ac3f8646b88070852de542
Contents?: true
Size: 347 Bytes
Versions: 5
Compression:
Stored size: 347 Bytes
Contents
class RootController < ApplicationController def index end def mail StatusCat::StatusMailer.failure(StatusCat::Status.all).deliver end def login cookies[:login] = { value: true, expires: 10.years.from_now } redirect_to action: :index end def logout cookies.delete(:login) redirect_to action: :index end end
Version data entries
5 entries across 5 versions & 1 rubygems