bullet_train-super_scaffolding-templates 1.0.1 → 1.0.5
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/app/controllers/api/v1/scaffolding/absolutely_abstract.rb +2 -0
- data/app/controllers/api/v1/scaffolding/completely_concrete.rb +2 -0
- data/app/controllers/api/v1/scaffolding.rb +2 -0
- data/app/controllers/api/v1.rb +2 -0
- data/app/controllers/api.rb +2 -0
- data/app/models/scaffolding.rb +5 -0
- data/config/routes.rb +28 -0
- data/lib/bullet_train/super_scaffolding/templates/engine.rb +11 -0
- data/lib/bullet_train/super_scaffolding/templates/version.rb +1 -1
- metadata +8 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1b4b3410f983c2ad29da408fe5a646f29035e6f701736b9322cf3ccf258adc65
|
4
|
+
data.tar.gz: f7ddd03e5b1b61eba0dd4debcc011ed0a60e09c889c06f86bd4949a7e5c22dfc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 770f73c79b0fb2195139ccfe9790ba70171800b937371eac065a57900c56548539db61dd08697268b064008d8caa6a4fab193912bf78c41d1205c88186fbedb4
|
7
|
+
data.tar.gz: bf308cd6ef3cb8f244029b8f8113fb4f893f487ab66374cea6ba1c048fbc43e1c82d6eb93bbefb49201d54b398d16ed07913a45d6e9e82a4ebdc3680fd31c2e7
|
data/config/routes.rb
CHANGED
@@ -1,2 +1,30 @@
|
|
1
1
|
Rails.application.routes.draw do
|
2
|
+
collection_actions = [:index, :new, :create]
|
3
|
+
|
4
|
+
namespace :account do
|
5
|
+
shallow do
|
6
|
+
resources :teams do
|
7
|
+
unless scaffolding_things_disabled?
|
8
|
+
namespace :scaffolding do
|
9
|
+
namespace :absolutely_abstract do
|
10
|
+
resources :creative_concepts do
|
11
|
+
scope module: "creative_concepts" do
|
12
|
+
resources :collaborators, only: collection_actions
|
13
|
+
end
|
14
|
+
|
15
|
+
namespace :creative_concepts do
|
16
|
+
resources :collaborators, except: collection_actions
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
20
|
+
resources :absolutely_abstract_creative_concepts, path: "absolutely_abstract/creative_concepts" do
|
21
|
+
namespace :completely_concrete do
|
22
|
+
resources :tangible_things
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
29
|
+
end
|
2
30
|
end
|
@@ -2,6 +2,17 @@ module BulletTrain
|
|
2
2
|
module SuperScaffolding
|
3
3
|
module Templates
|
4
4
|
class Engine < ::Rails::Engine
|
5
|
+
initializer "bullet_train.super_scaffolding.templates.register_template_path" do |app|
|
6
|
+
# Register the base path of this package with the Super Scaffolding engine.
|
7
|
+
BulletTrain::SuperScaffolding.template_paths << File.expand_path('../../../../..', __FILE__)
|
8
|
+
end
|
9
|
+
|
10
|
+
initializer "bullet_train.super_scaffolding.templates.register_api_endpoints" do |app|
|
11
|
+
if BulletTrain::Api
|
12
|
+
BulletTrain::Api.endpoints << "Api::V1::Scaffolding::AbsolutelyAbstract::CreativeConceptsEndpoint"
|
13
|
+
BulletTrain::Api.endpoints << "Api::V1::Scaffolding::CompletelyConcrete::TangibleThingsEndpoint"
|
14
|
+
end
|
15
|
+
end
|
5
16
|
end
|
6
17
|
end
|
7
18
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bullet_train-super_scaffolding-templates
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrew Culver
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-02-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -38,9 +38,15 @@ files:
|
|
38
38
|
- app/controllers/account/scaffolding/absolutely_abstract/creative_concepts/collaborators_controller.rb
|
39
39
|
- app/controllers/account/scaffolding/absolutely_abstract/creative_concepts_controller.rb
|
40
40
|
- app/controllers/account/scaffolding/completely_concrete/tangible_things_controller.rb
|
41
|
+
- app/controllers/api.rb
|
42
|
+
- app/controllers/api/v1.rb
|
43
|
+
- app/controllers/api/v1/scaffolding.rb
|
44
|
+
- app/controllers/api/v1/scaffolding/absolutely_abstract.rb
|
41
45
|
- app/controllers/api/v1/scaffolding/absolutely_abstract/creative_concepts_endpoint.rb
|
46
|
+
- app/controllers/api/v1/scaffolding/completely_concrete.rb
|
42
47
|
- app/controllers/api/v1/scaffolding/completely_concrete/tangible_things_endpoint.rb
|
43
48
|
- app/controllers/concerns/scaffolding/absolutely_abstract/creative_concepts/controller_support.rb
|
49
|
+
- app/models/scaffolding.rb
|
44
50
|
- app/models/scaffolding/absolutely_abstract.rb
|
45
51
|
- app/models/scaffolding/absolutely_abstract/creative_concept.rb
|
46
52
|
- app/models/scaffolding/absolutely_abstract/creative_concepts.rb
|