lib/openehr/rm/common/change_control.rb in openehr-1.2.0 vs lib/openehr/rm/common/change_control.rb in openehr-1.2.1
- old
+ new
@@ -138,11 +138,11 @@
self.attestations = args[:attestations]
self.other_input_version_uids = args[:other_input_version_uids]
end
def attestations=(attestations)
- if attestations.nil? || attestations.empty?
- raise ArgumentError, 'attestations is mandatory'
+ if !attestations.nil? && attestations.empty?
+ raise ArgumentError, 'invalid attestations'
end
@attestations = attestations
end
def other_input_version_uids=(other_input_version_uids)