Skip to content

Commit

Permalink
Review auto renewal for attribute default value
Browse files Browse the repository at this point in the history
  • Loading branch information
jacegu committed Mar 8, 2016
1 parent fabba1a commit 71958e5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/dnsimple/client/registrar_auto_renewal.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ module RegistrarAutoRenewal
# @raise [Dnsimple::NotFoundError]
# @raise [Dnsimple::RequestError]
def enable_auto_renewal(account_id, domain_name, options={})
response = client.put(Client.versioned("/%s/registrar/domains/%s/auto_renewal" % [account_id, domain_name]), {}, options)
response = client.put(Client.versioned("/%s/registrar/domains/%s/auto_renewal" % [account_id, domain_name]), nil, options)

Dnsimple::Response.new(response, nil)
end
Expand All @@ -31,7 +31,7 @@ def enable_auto_renewal(account_id, domain_name, options={})
# @raise [Dnsimple::NotFoundError]
# @raise [Dnsimple::RequestError]
def disable_auto_renewal(account_id, domain_name, options={})
response = client.delete(Client.versioned("/%s/registrar/domains/%s/auto_renewal" % [account_id, domain_name]), {}, options)
response = client.delete(Client.versioned("/%s/registrar/domains/%s/auto_renewal" % [account_id, domain_name]), nil, options)

Dnsimple::Response.new(response, nil)
end
Expand Down

0 comments on commit 71958e5

Please sign in to comment.