Sha256: 2fb4dbd24f24045ef08c7787a6af7130463ac3d25fbec73b40a7c50b13df84e3
Contents?: true
Size: 275 Bytes
Versions: 6
Compression:
Stored size: 275 Bytes
Contents
module Rapidfire class ApplicationController < ::ApplicationController helper_method :can_administer? def authenticate_administrator! unless can_administer? raise Rapidfire::AccessDenied.new("cannot administer questions") end end end end
Version data entries
6 entries across 6 versions & 2 rubygems