Pārlūkot izejas kodu

Add data-confirm-modal

Chris Oliver 6 gadi atpakaļ
vecāks
revīzija
ddcb38bef4
1 mainītis faili ar 2 papildinājumiem un 1 dzēšanām
  1. 2 1
      template.rb

+ 2 - 1
template.rb

@@ -4,6 +4,7 @@ end
 
 def add_gems
   gem 'administrate', '~> 0.8.1'
+  gem 'data-confirm-modal', '~> 1.6.2'
   gem 'devise', '~> 4.4.3'
   gem 'devise-bootstrapped', github: 'excid3/devise-bootstrapped', branch: 'bootstrap4'
   gem 'devise_masquerade', '~> 0.6.0'
@@ -78,7 +79,7 @@ def add_bootstrap
   # Add Bootstrap JS
   insert_into_file(
     "app/assets/javascripts/application.js",
-    "\n//= require jquery\n//= require popper\n//= require bootstrap",
+    "\n//= require jquery\n//= require popper\n//= require bootstrap\n//= require data-confirm-modal",
     after: "//= require rails-ujs"
   )
 end