Sha256: 61fd5286675742a24d43e4da5f7540b1fcd07fab955c88bcb7ae9cc707a9cd3c
Contents?: true
Size: 432 Bytes
Versions: 21
Compression:
Stored size: 432 Bytes
Contents
class Guarantor include Mongoid::Document include Mongoid::Attributes::Dynamic embeds_one :organization embeds_one :person field :time, type: Integer field :start_time, type: Integer field :end_time, type: Integer def shift_dates(date_diff) self.start_time = (self.start_time.nil?) ? nil : self.start_time + date_diff self.end_time = (self.end_time.nil?) ? nil : self.end_time + date_diff end end
Version data entries
21 entries across 21 versions & 1 rubygems