Skip to content

Instantly share code, notes, and snippets.

View dnlmzw's full-sized avatar

Daniel J. Mierzwinski dnlmzw

View GitHub Profile
@nhocki
nhocki / backbone.authtokenadapter.js
Created September 29, 2011 19:44
Backbone Rails Auth Token Adapter
// REQUIRES JQUERY AND BACKBONE TO BE LOADED FIRST
//
// With additions by Maciej Adwent http://github.com/Maciek416
// If token name and value are not supplied, this code Requires jQuery
//
// Adapted from:
// http://www.ngauthier.com/2011/02/backbone-and-rails-forgery-protection.html
// Nick Gauthier @ngauthier
//