title: I need to override backbone.sync to allow PUT methods
body: <p>I need to override Backbone.sync to allow <strong>PUT</strong> the problem is i don't know how and where to put it.</p>
  
  <p>This is my Model:</p>
  
  <pre><code>define([
  'underscore',
  'backbone'
  ], function(_, Backbone) {
  var Input = Backbone.Model.extend({
  url: 'http://localhost/InterprisePOS/SOP/mobilecreateinvoice/',
  initialize: function(){
  
  },
  toJSON : function() {
    return _.clone({ input:this.attributes });
  },
  
  });
  return Input;
  });
  </code></pre>
  
  <p>This is my Save function in my view:</p>
  
  <pre><code>save: function(){
      invoice = new Invoice();
      input = new Input();
      invoice.set({POSWorkstationID: "POS7"});
      invoice.set({POSClerkID: "admin"});
      invoice.set({CustomerName: "Alice in Wonderland Tours"});
      invoice.set({IsFreightOverwrite: true});
      invoice.set({BillToCode: "CUST-000009"});
      InvoiceCollection.add( invoice );
      //var invoices = JSON.stringify({Invoices: InvoiceCollection.toJSON()});
      _.each(this.collection.models, function(cart){
          InvoiceDetailCollection.add( cart );
      });
      input.set({ "Invoices": InvoiceCollection.toJSON() });
      input.set({ "InvoiceDetails": InvoiceDetailCollection});
      alert( JSON.stringify(input.toJSON()) );
      input.save();
  }
  </code></pre>