lib/dhis2/api/version226/event.rb in dhis2-3.0.3 vs lib/dhis2/api/version226/event.rb in dhis2-3.0.4
- old
+ new
@@ -10,10 +10,12 @@
include ::Dhis2::Api::Creatable
include ::Dhis2::Api::Deletable
include ::Dhis2::Api::Shared::SaveValidator
include ::Dhis2::Api::Shared::Event
- BulkCreationStatusClass = ::Dhis2::Api::EventCreationStatus
+ def bulk_creation_status_class
+ ::Dhis2::Api::EventCreationStatus
+ end
# args for a program without registration
# and a program with a program_stage
Schema = Dry::Validation.Schema do
required(:program).filled # program must be linked to the org unit