Skip to content

Commit

Permalink
Customer should be able to use any params names.
Browse files Browse the repository at this point in the history
  • Loading branch information
iced committed Jun 9, 2012
1 parent aad1336 commit 1057e2b
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions lib/iron_worker_ng/api_client.rb
Expand Up @@ -82,9 +82,6 @@ def schedules_get(id)
end

def schedules_create(code_name, payload, options = {})
raise "Seems you pass schedule options in payload param!" if
%w(run_every end_at run_times priority start_at).any? { |x| payload[x] or payload[x.to_sym] } and options.empty?

options[:start_at] = options[:start_at].iso8601 if (not options[:start_at].nil?) && options[:start_at].class == Time
options[:end_at] = options[:end_at].iso8601 if (not options[:end_at].nil?) && options[:end_at].class == Time

Expand Down

0 comments on commit 1057e2b

Please sign in to comment.