Sha256: 0d281e2d3fbf89bfd4684f40f00d09d9c1cf791137a10d2d9911906da4162f53

Contents?: true

Size: 435 Bytes

Versions: 4

Compression:

Stored size: 435 Bytes

Contents

class StatusCat::StatusController < ApplicationController

  layout :set_layout

  before_filter :_authenticate!
  before_filter :_authorize!

  def index
    @checkers = StatusCat::Status.all
  end

private

  def set_layout
    return StatusCat.config.layout
  end

  def _authenticate!
    instance_eval( &StatusCat.config.authenticate_with )
  end

  def _authorize!
    instance_eval( &StatusCat.config.authorize_with )
  end

end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
status_cat-0.1.1 app/controllers/status_cat/status_controller.rb
status_cat-0.1.0 app/controllers/status_cat/status_controller.rb
status_cat-0.0.9 app/controllers/status_cat/status_controller.rb
status_cat-0.0.8 app/controllers/status_cat/status_controller.rb