Skip to content

Commit e9fa362

Browse files
committed
Passing options to change_plan
1 parent 757c07a commit e9fa362

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/iugu/subscription.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@ def activate
4141
false
4242
end
4343

44-
def change_plan(plan_identifier)
45-
copy Iugu::Factory.create_from_response(self.class.object_type, APIRequest.request("POST", "#{self.class.url(self.id)}/change_plan/#{plan_identifier}"))
44+
def change_plan(plan_identifier, options = {})
45+
copy Iugu::Factory.create_from_response(self.class.object_type, APIRequest.request("POST", "#{self.class.url(self.id)}/change_plan/#{plan_identifier}", options))
4646
self.errors = nil
4747
true
4848
rescue Iugu::RequestWithErrors => ex

0 commit comments

Comments
 (0)