stimulus-rails 0.4.0 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3658754f53d1cec9d1cd7fa3296712e68ec6707e8f0688e3024a9b69954aaf3a
|
4
|
+
data.tar.gz: 289338078bfe2df5c3b8f6ddd8d5315d498b329fadd551d96f1e928555caf644
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bf15c39c9e961d069748a0ffbe22d23382ce926973753b73a38ee084bc98b4332888690d39ab60f1ce479e8963c437ca6cbe610b5686cc9b4df2c5f855073906
|
7
|
+
data.tar.gz: b9d374fcfc36a1372aafd653ec1837265b864a08ccef95651b4a93059073b9a99b536d92e8c8298eb34793395dbdaa9d21ba866454401c7fb26f1bc787da4714
|
@@ -8,5 +8,4 @@ application.debug = false
|
|
8
8
|
window.Stimulus = application
|
9
9
|
|
10
10
|
// Import and register all your controllers
|
11
|
-
import
|
12
|
-
application.register("hello", HelloController)
|
11
|
+
import("./hello_controller").then(c => application.register("hello", c.default))
|
@@ -6,7 +6,7 @@ copy_file "#{__dir__}/app/javascript/controllers/hello_controller.js",
|
|
6
6
|
"app/javascript/controllers/hello_controller.js"
|
7
7
|
|
8
8
|
say "Import Stimulus controllers"
|
9
|
-
append_to_file "app/javascript/application.js", %(import "
|
9
|
+
append_to_file "app/javascript/application.js", %(import "controllers"\n)
|
10
10
|
|
11
11
|
say "Pin Stimulus"
|
12
12
|
append_to_file "config/importmap.rb" do <<-RUBY
|
data/lib/stimulus/version.rb
CHANGED