Sha256: b6782a55dcb3d8b2989069ba54460915ae8890dd95ce608c34d0865d1c85deab
Contents?: true
Size: 282 Bytes
Versions: 5
Compression:
Stored size: 282 Bytes
Contents
module Protected module Admin class ProtectedController < Protected::ApplicationController before_filter :admin_only protected def admin_only if !current_user.is_admin? redirect_to not_authorized_url end end end end end
Version data entries
5 entries across 5 versions & 1 rubygems