Update BaseBackgroundHelper.rb

This commit is contained in:
2016-05-25 10:24:08 -04:00
parent b64d91108e
commit 4f333c9b94

View File

@@ -10,7 +10,7 @@
module BaseBackgroundHelper
# abstact methods to be overriden
def run; raise "run method is missing"; end
def run (customer); raise "run method is missing"; end
def success_path; raise "success_path is missing"; end
def error_path; raise "error_path is missing"; end
@@ -19,7 +19,7 @@ module BaseBackgroundHelper
job = Job.find_by_id(args[:job_id])
# Call the abstact method passing the service
run(Qbo.get_base(args[:type]).service, :id)
run(Qbo.get_base(args[:type]).service.fetch_by_id(args[:id]))
job.change_status("succes")
end