Skip to content

Instantly share code, notes, and snippets.

@mxriverlynn
Created February 25, 2011 17:37
Show Gist options
  • Save mxriverlynn/844160 to your computer and use it in GitHub Desktop.
Save mxriverlynn/844160 to your computer and use it in GitHub Desktop.
produces nothing because ex is always nil or empty or something
def call_created
callbacks = get_callbacks
if callbacks
callbacks.created(patient, assessment) if callbacks.respond_to?(:created)
end
rescue Exception => ex
puts "......................................#{ex}"
Rails.logger.fatal "Callback method failed"
Rails.logger.fatal ex, ex.backtrace
else
raise
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment