Sha256: fe83010dc77ebc145ae71214c80bb7fcf4dc392502a8d3f5d080c91e51fec833
Contents?: true
Size: 239 Bytes
Versions: 22
Compression:
Stored size: 239 Bytes
Contents
class Admin::AdminController < ApplicationController before_filter :authenticate before_filter :check_role def index end private def check_role redirect_to root_url unless current_user.admin? end end
Version data entries
22 entries across 22 versions & 2 rubygems