lib/recurly/invoice.rb in recurly-0.2.1 vs lib/recurly/invoice.rb in recurly-0.2.2

- old
+ new

@@ -15,10 +15,10 @@ path = super # postprocess generated element url. # changes /accounts/:account_code/invoices/:id to /invoices/:id # this breaks update, however I dont believe recurly allows invoice updates anyways - path.sub("/accounts/#{CGI::escape(prefix_options[:account_code] || '')}/invoices/", "/invoices/") + path.sub("/accounts/#{CGI::escape(prefix_options[:account_code].to_s)}/invoices/", "/invoices/") end end end \ No newline at end of file