scaffold_plus 1.7.12 → 1.7.13
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
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4d2698f0edfe0972cf4be6a92b1c4390fa2148d1
|
4
|
+
data.tar.gz: 409532c06960f54339dd7e496eddeba112f37a6c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f2cf3e501cebfc685e8a3bd6b161a005647851978e7669d43308ab2eef71ccb7a57659e93aba1f597c6fb5badb04d4a4df75b9e9ff73df3a65c043215e99ad44
|
7
|
+
data.tar.gz: 79b419ec66d6d74d1e9f7ff5cb006bf2b386f452698902f3b306cfa4a4fdcd28ec1da2ce8fcd9834ba6c993f74fff61b7cdf20aa8802ae483a802598d35f8538
|
@@ -63,7 +63,7 @@ module ScaffoldPlus
|
|
63
63
|
def update_controller
|
64
64
|
return unless options.permit?
|
65
65
|
text = ":#{options.latitude}, :#{options.latitude}"
|
66
|
-
text << ":address, :country" if options.address?
|
66
|
+
text << ", :address, :country" if options.address?
|
67
67
|
file = "app/controllers/#{table_name}_controller.rb"
|
68
68
|
gsub_file file, /(permit\(.*)\)/, "\\1, #{text})"
|
69
69
|
# Special case: no previous permit
|