Sha256: a57bea3a7cb143f6d07727fcc8fdf8f0f353d5807a8498529999a1d846fcb2c0
Contents?: true
Size: 285 Bytes
Versions: 52
Compression:
Stored size: 285 Bytes
Contents
FactoryGirl.define do trait :metasploit_model_base do to_create do |instance| # validate so before validation derivation occurs to mimic create for ActiveRecord. unless instance.valid? raise Metasploit::Model::Invalid.new(instance) end end end end
Version data entries
52 entries across 52 versions & 1 rubygems