Sha256: 6da7a6d9002be2138a454ba3a7e0075565dafb523e31751c8819275136a66c6a
Contents?: true
Size: 354 Bytes
Versions: 54
Compression:
Stored size: 354 Bytes
Contents
Para.ajax = (options = {}) -> csrfParam = $('meta[name="csrf-param"]').attr('content') csrfToken = $('meta[name="csrf-token"]').attr('content') csrfOptions = {} csrfOptions[csrfParam] = csrfToken if csrfParam and csrfToken unless options.method and options.method.match(/get/i) options = $.extend(csrfOptions, options) $.ajax(options)
Version data entries
54 entries across 54 versions & 1 rubygems