Sha256: 1a6e2587ac6ec0c7af29d3098ab7231af0f9736171cc00eac983058b3830d8b1
Contents?: true
Size: 438 Bytes
Versions: 41
Compression:
Stored size: 438 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
41 entries across 41 versions & 1 rubygems