Enable rails-ujs to support PUT/POST/DELETE properly

Signed-off-by: Kenji Okimoto <okimoto@clear-code.com>
This commit is contained in:
Kenji Okimoto 2018-05-24 14:23:29 +09:00
parent c7fd8f58f1
commit 47e21958b4
No known key found for this signature in database
GPG Key ID: F9E3E329A5C5E4A1
3 changed files with 10 additions and 0 deletions

View File

@ -14,6 +14,11 @@ import jQuery from 'jquery/dist/jquery'
window.$ = jQuery
window.jQuery = jQuery
import Rails from 'rails-ujs/lib/assets/compiled/rails-ujs.js'
window.Rails = Rails
Rails.start()
import 'popper.js/dist/popper'
import 'bootstrap/dist/js/bootstrap'
import 'datatables.net/js/jquery.dataTables'

View File

@ -8,6 +8,7 @@
"jquery": "^3.3.1",
"lodash": "^4.17.10",
"popper.js": "^1.14.3",
"rails-ujs": "^5.2.0",
"startbootstrap-sb-admin": "^4.0.0",
"vue": "^2.5.16",
"vue-loader": "14.2.2",

View File

@ -4741,6 +4741,10 @@ querystringify@^2.0.0:
version "2.0.0"
resolved "https://registry.yarnpkg.com/querystringify/-/querystringify-2.0.0.tgz#fa3ed6e68eb15159457c89b37bc6472833195755"
rails-ujs@^5.2.0:
version "5.2.0"
resolved "https://registry.yarnpkg.com/rails-ujs/-/rails-ujs-5.2.0.tgz#d93f7a969a226c0ae67044172955be8c1cdf49fc"
randomatic@^3.0.0:
version "3.0.0"
resolved "https://registry.yarnpkg.com/randomatic/-/randomatic-3.0.0.tgz#d35490030eb4f7578de292ce6dfb04a91a128923"