Sha256: f94ef40690172857f255d19357065d354965b652d80efa415567b4c975b59aac
Contents?: true
Size: 574 Bytes
Versions: 3
Compression:
Stored size: 574 Bytes
Contents
module EgovUtils module RegistrationRequests class Create < ActiveInteraction::Base string :mail string :firstname string :lastname string :organization string :note def execute request = RegistrationRequest.create(inputs.merge(status: :pending)) if request.persisted? EgovUtils::RegistrationRequestMailer.created(request.id).deliver_now CheckAutoAcceptJob.perform_async(request.id) else errors.merge!(request.errors) end request end end end end
Version data entries
3 entries across 3 versions & 1 rubygems