Fix error in displaying JStree and revert new default for FactoryBot

This commit is contained in:
Sebastian Serth
2019-03-11 23:43:02 +01:00
parent a0b544fb26
commit 7f1a7fbaa0
2 changed files with 8 additions and 0 deletions

View File

@ -29,3 +29,7 @@ $.fn.replaceWithPush = function(a) {
this.replaceWith($a); this.replaceWith($a);
return $a; return $a;
}; };
// Disable the use of web workers for JStree due to JS error
// See https://github.com/vakata/jstree/issues/1717 for details
$.jstree.defaults.core.worker = false;

View File

@ -0,0 +1,4 @@
require 'factory_bot'
# Use "old" FactoryBot default to allow auto-creating associations for #build
FactoryBot.use_parent_strategy = false