Sha256: 5ddbba4fe8729403acb2c63a0555dd5067b934837b77cef5176eb907bcfea4e0

Contents?: true

Size: 367 Bytes

Versions: 3

Compression:

Stored size: 367 Bytes

Contents

//=require turbolinks
//=require unobtrusive_flash
//=require_self

// simple handler to log all flashes into a variable accessible from the test suite
loggingFlashHandler = function(e, params) {
  if (typeof(window.flashMessages) == 'undefined') window.flashMessages = [];
  window.flashMessages.push(params);
};

$(window).bind('rails:flash', loggingFlashHandler);

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
unobtrusive_flash-3.3.1 spec/support/assets/javascripts/turbolinks_application.js
unobtrusive_flash-3.3.0 spec/support/assets/javascripts/turbolinks_application.js
unobtrusive_flash-3.2.0 spec/support/assets/javascripts/turbolinks_application.js