Sha256: 3856473036b370676381f0452776c9832d9d419a8200ad7be5d4c4b27d44f02c
Contents?: true
Size: 333 Bytes
Versions: 2
Compression:
Stored size: 333 Bytes
Contents
// Adds X-CSRF-Token to all REST requests. // Allows for the use of Rails protect_from_forgery // The CSRF Token is normally found in app/views/layouts/application.html.* // inserted with the rails helper: "csrf_meta_tags" DS.RESTAdapter.reopen({ headers: { "X-CSRF-Token": $('meta[name="csrf-token"]').attr('content') } });
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ember-rails-0.16.1 | lib/generators/templates/store.js |
ember-rails-0.16.0 | lib/generators/templates/store.js |