scaffold_pico 1.1.1 → 1.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/scaffold/cli.rb +2 -1
- data/lib/scaffold/models/resource.rb +0 -3
- data/lib/scaffold/services/controller.rb +3 -1
- 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: f36cb646a4da439d33b5810bc496d2583712842c
|
4
|
+
data.tar.gz: ce79537d8d94ffc1ad8670373c11be53b9d30a0a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 062c6ce2aa74ccc27e47e22290bf891dbca524cd176e1fe96566b011c134a6a563a450134b8a9d17f8b3cfe3f6eb802488a92347784e9ac360ac1243eadb1455
|
7
|
+
data.tar.gz: 7d1cac1667b634dbdc8cc623e3b9cca0aa5d7de10a687047ae5b64d3e21de41a06bcd122385f9b5ed13c4e7822618446ec64a43774142b7f31c46307169e3036
|
data/lib/scaffold/cli.rb
CHANGED
@@ -128,8 +128,9 @@ module Scaffold
|
|
128
128
|
end
|
129
129
|
|
130
130
|
def run
|
131
|
+
|
131
132
|
if Choice[:model]
|
132
|
-
add_custom_inflection(Choice.choices[:custom_inflection])
|
133
|
+
add_custom_inflection(Choice.choices[:custom_inflection]) if Choice.choices[:custom_inflection]
|
133
134
|
scaffold = Scaffold::Main.new(Choice.choices)
|
134
135
|
scaffold.run
|
135
136
|
else
|
@@ -37,7 +37,9 @@ module Scaffold
|
|
37
37
|
|
38
38
|
# Admin::ClassRooms::Etc
|
39
39
|
def namespaces_as_modules
|
40
|
-
namespaces_as_path
|
40
|
+
puts "namespaces_as_path: #{namespaces_as_path}"
|
41
|
+
puts "namespaces_as_path.join.camelize: #{namespaces_as_path.map(&:camelize).join('::')}"
|
42
|
+
namespaces_as_path.map(&:camelize).join('::')
|
41
43
|
end
|
42
44
|
|
43
45
|
# ['admin', 'classrooms' ]
|