lib/health-data-standards/models/facility.rb in health-data-standards-3.7.0 vs lib/health-data-standards/models/facility.rb in health-data-standards-4.0.0
- old
+ new
@@ -9,10 +9,11 @@
field :end_time, type: Integer
embeds_many :addresses, as: :locatable
embeds_many :telecoms, as: :contactable
- def shift_dates(date_diff)
+ 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
\ No newline at end of file
+
+end