bullet_train-super_scaffolding 1.0.7 → 1.0.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/bullet_train/super_scaffolding/engine.rb +1 -1
- data/lib/bullet_train/super_scaffolding/scaffolders/crud_field_scaffolder.rb +1 -1
- data/lib/bullet_train/super_scaffolding/scaffolders/crud_scaffolder.rb +1 -3
- data/lib/bullet_train/super_scaffolding/version.rb +1 -1
- data/lib/bullet_train/super_scaffolding.rb +1 -1
- 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: bfdc2fb6d3d94d5db53ecf46bd69b01cb429fa35d3e3d73439e98baf37badee6
|
4
|
+
data.tar.gz: bb887c194a7c8e0bba622991344f846db4aa420b1474927fd2f4ad4d5a57de7a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fcb7b79415897ad6e756d102295ddc78b59c2015e3410c6a31fb681c7b92066bf82bc9cf758e7a9d3e57b8dc2623e3402d9380c6f4434661b50476a345a21fe2
|
7
|
+
data.tar.gz: 14ff4eaad35e66d4c7cc55f06c753b4a9e008457956f124603a722308d81520c97ee34cbefdbf27bdd45050f6c41d13d4ac01eb0fbe9c18d93cf9a8517032046
|
@@ -7,7 +7,7 @@ module BulletTrain
|
|
7
7
|
BulletTrain::SuperScaffolding.template_paths << Rails.root.to_s
|
8
8
|
|
9
9
|
# Register the base path of this package with the Super Scaffolding engine.
|
10
|
-
BulletTrain::SuperScaffolding.template_paths << File.expand_path(
|
10
|
+
BulletTrain::SuperScaffolding.template_paths << File.expand_path("../../../..", __FILE__)
|
11
11
|
end
|
12
12
|
end
|
13
13
|
end
|
@@ -26,7 +26,7 @@ module BulletTrain
|
|
26
26
|
# get all the attributes.
|
27
27
|
attributes = argv[1..-1]
|
28
28
|
|
29
|
-
check_required_options_for_attributes(
|
29
|
+
check_required_options_for_attributes("crud-field", attributes, child)
|
30
30
|
|
31
31
|
transformer = Scaffolding::Transformer.new(child, parents, @options)
|
32
32
|
transformer.add_attributes_to_various_views(attributes, type: :crud_field)
|
@@ -45,9 +45,7 @@ module BulletTrain
|
|
45
45
|
# get all the attributes.
|
46
46
|
attributes = argv[2..-1]
|
47
47
|
|
48
|
-
check_required_options_for_attributes(
|
49
|
-
|
50
|
-
binding.pry
|
48
|
+
check_required_options_for_attributes("crud", attributes, child, parent)
|
51
49
|
|
52
50
|
transformer = Scaffolding::Transformer.new(child, parents, @options)
|
53
51
|
transformer.scaffold_crud(attributes)
|
@@ -13,7 +13,7 @@ module BulletTrain
|
|
13
13
|
"crud" => "BulletTrain::SuperScaffolding::Scaffolders::CrudScaffolder",
|
14
14
|
"crud-field" => "BulletTrain::SuperScaffolding::Scaffolders::CrudFieldScaffolder",
|
15
15
|
"join-model" => "BulletTrain::SuperScaffolding::Scaffolders::JoinModelScaffolder",
|
16
|
-
"oauth-provider" => "BulletTrain::SuperScaffolding::Scaffolders::OauthProviderScaffolder"
|
16
|
+
"oauth-provider" => "BulletTrain::SuperScaffolding::Scaffolders::OauthProviderScaffolder"
|
17
17
|
}
|
18
18
|
|
19
19
|
class Runner
|