lib/pagarme/subscription.rb in pagarme-1.9.4 vs lib/pagarme/subscription.rb in pagarme-1.9.5

- old
+ new

@@ -1,12 +1,10 @@ # encoding: utf-8 require File.join(File.dirname(__FILE__), '..', 'pagarme') module PagarMe class Subscription < TransactionCommon - - def create if self.plan self.plan_id = plan.id end @@ -31,10 +29,10 @@ def charge(amount, installments = 1) request = PagarMe::Request.new(self.url + '/transactions', 'POST') request.parameters = { :amount => amount, - :installments => installments + :installments => installments } response = request.run request = PagarMe::Request.new(self.url, 'GET') update(request.run)