api_scaffolding 1.1.4 → 1.1.6
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
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: eb5dcafe8e054a77daf3460abe718c81255e2d7b261e0b784867648c49952b11
|
|
4
|
+
data.tar.gz: 325adee0b8385a18dfb0887d08e6c5d0f0e33093af237aba100bb6a9dd570ac9
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 1fc146406892fcb22905975ef6f8f8ec4d7502760088fc076f714f4ced4368484626d56568d8e9ebc896b5e6da0fefc547193c34cff8769d08ed1d8a0c296b08
|
|
7
|
+
data.tar.gz: 23bee1ea5bb7a9073a30b1e013796cdec7c538f674236a332a0d4f146c9fb2f8cd8676a9406db0f649f3ff03200cf3c401c5c3392f72690c8bca718472e139e8
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
module API<%= api_version_module_with_prefix %>
|
|
3
3
|
class <%= controller_class %> < API<%= api_version_module_with_prefix %>::Root
|
|
4
4
|
|
|
5
|
-
include API<%= api_version_module_with_prefix %>::Defaults
|
|
6
5
|
<%- unless @no_params -%>
|
|
7
6
|
helpers Params<%= api_version_module_with_prefix %>::<%= controller_class %>
|
|
8
7
|
<%- end -%>
|
|
@@ -59,7 +58,7 @@ module API<%= api_version_module_with_prefix %>
|
|
|
59
58
|
oauth2
|
|
60
59
|
<%- unless @no_params -%>
|
|
61
60
|
params do
|
|
62
|
-
use
|
|
61
|
+
use :attributes
|
|
63
62
|
end
|
|
64
63
|
<%- end -%>
|
|
65
64
|
<%- if @abilities_check -%>
|
|
@@ -105,7 +104,7 @@ module API<%= api_version_module_with_prefix %>
|
|
|
105
104
|
oauth2
|
|
106
105
|
<%- unless @no_params -%>
|
|
107
106
|
params do
|
|
108
|
-
use
|
|
107
|
+
use :attributes
|
|
109
108
|
end
|
|
110
109
|
<%- end -%>
|
|
111
110
|
<%- if @abilities_check -%>
|
|
@@ -8,7 +8,7 @@ module Params<%= api_version_module_with_prefix %>::<%= controller_class %>
|
|
|
8
8
|
optional :columns, type: [String], desc: 'Требуемый список колонок'
|
|
9
9
|
end
|
|
10
10
|
|
|
11
|
-
params
|
|
11
|
+
params :attributes do
|
|
12
12
|
<%- params_fields.each do |column| -%>
|
|
13
13
|
<%= parameter_line(column) %>
|
|
14
14
|
<%- end -%>
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: api_scaffolding
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.1.
|
|
4
|
+
version: 1.1.6
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Павел Бабин
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2024-09-
|
|
11
|
+
date: 2024-09-20 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: faker
|