Sha256: 3fe0570d8005140bd9820bf86c91f1d247b57f2f445af4e6a722b3917480c870
Contents?: true
Size: 383 Bytes
Versions: 59
Compression:
Stored size: 383 Bytes
Contents
class Mdm::ApiKey < ActiveRecord::Base # # Validators # validate :supports_api validates :token, :presence => true, :length => { :minimum => 8 } protected def supports_api license = License.get if license and not license.supports_api? errors[:license] = " - this product does not support API access" end end Metasploit::Concern.run(self) end
Version data entries
59 entries across 59 versions & 1 rubygems