Sha256: 24667c85efd5bd90ac1dc85e3c1d6c8ef84aa43397d9f24a7ce775530bff3177
Contents?: true
Size: 554 Bytes
Versions: 24
Compression:
Stored size: 554 Bytes
Contents
class Service include Mongoid::Document field :sid field :before_destroy_called, type: Boolean, default: false field :after_destroy_called, type: Boolean, default: false field :after_initialize_called, type: Boolean, default: false embedded_in :person belongs_to :target, class_name: "User" validates_numericality_of :sid before_destroy do |doc| doc.before_destroy_called = true end after_destroy do |doc| doc.after_destroy_called = true end after_initialize do |doc| doc.after_initialize_called = true end end
Version data entries
24 entries across 24 versions & 6 rubygems