Sha256: 18d1e7812926b5d85ce02da69b41b7e1e4750bac1567aa7b45a386ca03b3ee8e

Contents?: true

Size: 365 Bytes

Versions: 4

Compression:

Stored size: 365 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

4 entries across 4 versions & 1 rubygems

Version Path
status_cat-0.1.1 spec/dummy/app/controllers/root_controller.rb
status_cat-0.1.0 spec/dummy/app/controllers/root_controller.rb
status_cat-0.0.9 spec/dummy/app/controllers/root_controller.rb
status_cat-0.0.8 spec/dummy/app/controllers/root_controller.rb