scaffold_pico 2.2.0 → 2.2.1
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 +1 -3
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f40c45aedc54a1d8b3d4ff82328f5d761178d50c7cd4831dad57c998aab869a0
|
4
|
+
data.tar.gz: 3fe140a777902bc7e23ef277d27feb841303c0c9ebf817879c45dfbc93c969b7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9d92d5cd66c69f825c406de7d252436238e212362c3d001a507dc204ce15848b8f7ac71686a59d057f501963d933207baf9ee52822f7120390b94c89a9f93d83
|
7
|
+
data.tar.gz: b3780c528fabe7d0fc73104bb9c084a5004332b37cce3578f75023b6dd178ccbfc7aa01a8da6235b7fefdec11b93691b384f7f3ac11a52bbdfc5aa6ff64366a9
|
data/lib/scaffold/cli.rb
CHANGED
@@ -54,7 +54,7 @@ module Scaffold
|
|
54
54
|
validate /\A(?:::)?([A-Z]\w*(?:::[A-Z]\w*)*)\z/
|
55
55
|
end
|
56
56
|
|
57
|
-
option :no_model
|
57
|
+
option :no_model do
|
58
58
|
long '--no-model'
|
59
59
|
desc 'Do not generate file. It can help when you need to recreate the views on a model which already exists and have some code'
|
60
60
|
end
|
@@ -129,11 +129,9 @@ module Scaffold
|
|
129
129
|
end
|
130
130
|
|
131
131
|
end
|
132
|
-
|
133
132
|
end
|
134
133
|
|
135
134
|
def run
|
136
|
-
|
137
135
|
if Choice[:model]
|
138
136
|
add_custom_inflection(Choice.choices[:custom_inflection]) if Choice.choices[:custom_inflection]
|
139
137
|
scaffold = Scaffold::Main.new(Choice.choices)
|