bamboolab_contact_form 0.0.18 → 0.0.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/bin/bamboolab_contact_form +4 -5
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dd239654b8f106bc48d4c581cfca626d9c188bfb
|
4
|
+
data.tar.gz: 772973aba23a76a0c5ef638b96a32ce9ece2391a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0a96f13b69f2843eeb5f05f7a78b2abc736347dcbc2f3d19cb654befff525394646d037768e3084d318fe803020c9025c792cfc3f0681c26d73682fc22e22980
|
7
|
+
data.tar.gz: 00f2fc99831cd6ff63223ce1d6211c770aa806065791831018aa6aa848f980ce9d484592d5e8875992c783e4280d945165c3c27872739151dd4e534f8054c2a2
|
data/bin/bamboolab_contact_form
CHANGED
@@ -25,6 +25,10 @@ require 'bamboolab_contact_form'
|
|
25
25
|
form = Bamboolab_contact_form.new(name, fields, mailer)
|
26
26
|
|
27
27
|
if save == "destroy"
|
28
|
+
system("rails destroy controller #{name}s")
|
29
|
+
system("rails destroy model #{name}")
|
30
|
+
system("rails destroy mailer #{name}s")
|
31
|
+
else
|
28
32
|
system("rails generate controller #{name}s")
|
29
33
|
|
30
34
|
unless save
|
@@ -52,9 +56,4 @@ if save == "destroy"
|
|
52
56
|
system("rails generate mailer #{name}s") unless mailer_arg=="nil"
|
53
57
|
form.mailer unless mailer_arg=="nil"
|
54
58
|
form.notice
|
55
|
-
else
|
56
|
-
system("rails destroy controller #{name}s")
|
57
|
-
system("rails destroy model #{name}")
|
58
|
-
system("rails destroy mailer #{name}s")
|
59
|
-
|
60
59
|
end
|