Created
February 25, 2011 17:37
-
-
Save mxriverlynn/844160 to your computer and use it in GitHub Desktop.
produces nothing because ex is always nil or empty or something
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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