Sha256: cdf1be3c02693458ee6830231da23451c82746dd9faa1832b16121c9c4ff34d1
Contents?: true
Size: 253 Bytes
Versions: 34
Compression:
Stored size: 253 Bytes
Contents
module Workarea module RoutesConstraints class SuperAdmin def matches?(request) user_id = request.cookie_jar.signed[:user_id] return false if user_id.blank? User.find(user_id).super_admin? end end end end
Version data entries
34 entries across 34 versions & 1 rubygems