title: Using $.ajaxSetup() to append a data object to AJAX calls in Spine
body: <p>I am using the <a href="http://api.jquery.com/jQuery.ajaxSetup/" rel="nofollow">$.ajaxSetup()</a> function to append some additional params to each of my AJAX calls in Spine. However it isn't working as i'd expect it to.</p>
  
  <p>If i call $ajaxSetup() as follows, my GET requests work fine, but my params are overidden with any POST requests and are not included in the form data as id expect:</p>
  
  <pre><code>$.ajaxSetup
        data: "user_email=foo@bar.com&amp;user_token=foobar"
  </code></pre>
  
  <p>As a result i tried changing my data string to an object to see if that made any difference:</p>
  
  <pre><code>settings =
          data:
            user_email:'foo@bar.com'
            user_token:'foobar'
  
  $.ajaxSetup settings
  </code></pre>
  
  <p>However that causes my URL's in my requests to appear malformed, like so:
  <code>http://dev.myapp.com:5000/api/v1/posts?[object%20Object]</code></p>
  
  <p>I've tried recreating this in JSFiddle (<a href="http://jsfiddle.net/zoltarSpeaks/xbvf7/" rel="nofollow">my fiddle</a>) to test that i wasn't going mad and it seems that my approach works as i'd expect over there. For GET requests, a string of my data object is appended to the end of my URL and with POST requests the data object is appended to the form data sent with the request.</p>
  
  <p>So what am i doing wrong? Is this a bug in Spine or something else?</p>
  
  <p>jQuery Version: 2.0.3</p>