Sha256: 95d33175bcd1c825c2acd1a6b210ab53156867e8debd4a9704c3f23c964973b2
Contents?: true
Size: 439 Bytes
Versions: 13
Compression:
Stored size: 439 Bytes
Contents
module RailsOps::AuthorizationBackend class Abstract def authorize!(_operation, *_args) fail NotImplementedError end def exception_class @exception_class ||= self.class::EXCEPTION_CLASS.constantize rescue NameError fail "Unable to constantize exception class #{self.class::EXCEPTION_CLASS.inspect} " \ "for authorization backend #{self.class.name}. Is the library loaded?" end end end
Version data entries
13 entries across 13 versions & 1 rubygems