Sha256: 74c0954173e979b6229d355392f6708ed10cfca7646013ac3d77c1611e4ef6fd
Contents?: true
Size: 265 Bytes
Versions: 38
Compression:
Stored size: 265 Bytes
Contents
class Oscar include Mongoid::Document field :title, type: String field :destroy_after_save, type: Mongoid::Boolean, default: false before_save :complain def complain if destroy_after_save? destroy else throw(:abort) end end end
Version data entries
38 entries across 36 versions & 2 rubygems