lib/rails_cloud_tasks/scheduler.rb in rails-cloud-tasks-0.0.4rc2 vs lib/rails_cloud_tasks/scheduler.rb in rails-cloud-tasks-0.0.4

- old
+ new

@@ -43,10 +43,10 @@ name: "#{location_path}/jobs/#{scheduler_prefix_name}--#{job[:name]}", schedule: job[:schedule], description: job[:description], time_zone: job[:time_zone], http_target: { - uri: "#{host}#{tasks_path}/#{job[:class_name] || job[:name]}", + uri: "#{host}#{tasks_path}/#{job[:class_name]}", http_method: 'POST', body: job[:args].to_json }.merge(auth) } end