Sha256: 910aa2016269f18a4c95577e0e7d41e7df9c12da544003793b8efe0395ec0387
Contents?: true
Size: 393 Bytes
Versions: 20
Compression:
Stored size: 393 Bytes
Contents
class Guarantor include Mongoid::Document 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
20 entries across 20 versions & 1 rubygems