lib/paperbin/version_mixin.rb in paperbin-0.0.3 vs lib/paperbin/version_mixin.rb in paperbin-0.1.0
- old
+ new
@@ -7,9 +7,11 @@
after_create :perform_worker
end
def perform_worker
Paperbin::WriteWorker.perform_async(item_id, item_type)
+ rescue Exception => e
+ Airbrake.notify_or_ignore(e) if Paperbin::Handler.new.options[:airbrake_enabled]
end
end