lib/sinatra/helpers/schedule.rb in sinatra-hexacta-0.1.1 vs lib/sinatra/helpers/schedule.rb in sinatra-hexacta-0.3.0

- old
+ new

@@ -19,11 +19,11 @@ begin yield rescue StandardError => error title = error.message.split(':')[0].gsub('#<',''); message = error.backtrace.join(','); - NotificationSender.send_error(nil,title,message) + NotificationSender.instance.send_error(nil,title,message) end end ensure unless f.nil? @@ -48,10 +48,10 @@ begin yield rescue error title = error.message.split(':')[0].gsub('#<',''); message = error.backtrace.join(','); - NotificationSender.send_error(nil,title,message) + NotificationSender.instance.send_error(nil,title,message) end end ensure unless f.nil? \ No newline at end of file