Sha256: 4fe4f33dec64814f80f0fc0a174875a7c7f14745df49a9dcc637cbc7e9bf6f2f
Contents?: true
Size: 385 Bytes
Versions: 1
Compression:
Stored size: 385 Bytes
Contents
module Madmin module Resources # TODO: link to documentation in error message. def self.gather all rescue NoMethodError raise NoResourcesError, "You must define an array of resources as `self.all` in lib/madmin/resources.rb" rescue NameError => e raise ResourceNotFoundError, "Madmin cannot locate the resource #{e.name}." end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
madmin-0.1.0 | lib/madmin/resources.rb |