Sha256: 2259d51ba51c79dd9772bb3acba86b0d5fba0e707a1515e95465baa7eca6a7b5
Contents?: true
Size: 434 Bytes
Versions: 7
Compression:
Stored size: 434 Bytes
Contents
module RoleAuthorization module Rules class Basic def initialize(controller, options, &block) @controller_klass = controller self end def to_s "deny all (basic rule)" end def controller_name @controller_klass.to_s.gsub('Controller', '') end def authorized?(controller_instance, controller, action, id) return false end end end end
Version data entries
7 entries across 7 versions & 1 rubygems