Sha256: 027c2458dbf8f1656b3722734c29b1785dfbbf4bf34f370e11b75e9dd3094e6d
Contents?: true
Size: 479 Bytes
Versions: 5
Compression:
Stored size: 479 Bytes
Contents
module StatusCat class StatusController < ApplicationController layout :set_layout before_action :_authenticate! before_action :_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 end
Version data entries
5 entries across 5 versions & 1 rubygems