lib/account.rb in nylas-0.18.2 vs lib/account.rb in nylas-1.0.0

- old
+ new

@@ -10,10 +10,10 @@ parameter :billing_state def _perform_account_action!(action) raise UnexpectedAccountAction.new unless action == "upgrade" || action == "downgrade" - collection = ManagementModelCollection.new(Account, @_api, @namespace_id, {:account_id=>@account_id}) + collection = ManagementModelCollection.new(Account, @_api, {:account_id=>@account_id}) ::RestClient.post("#{collection.url}/#{@account_id}/#{action}",{}) do |response, request, result| # Throw any exceptions json = Inbox.interpret_response(result, response, :expected_class => Object) end end