Sha256: 0c5e1f70297b7b82d357b8f601408ce6c8c73a047f551037a5ce0b1772fa7566
Contents?: true
Size: 204 Bytes
Versions: 16
Compression:
Stored size: 204 Bytes
Contents
class Admin::BaseController < ApplicationController before_filter :verify_admin_user layout 'admin' private def verify_admin_user redirect_to("/home") unless current_user.admin? end end
Version data entries
16 entries across 16 versions & 2 rubygems