Skip to content

Instantly share code, notes, and snippets.

#I think, to use 'rescue' you need to have a 'begin'
def call_created
begin
callbacks = get_callbacks
if callbacks
callbacks.created(patient, assessment) if callbacks.respond_to?(:created)
end
rescue Exception => ex
puts "......................................#{ex}"