thecore_api 1.5.10 → 1.5.12
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/controllers/api/v1/info_controller.rb +8 -8
- data/lib/thecore_api/version.rb +1 -1
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2c7b3d5a21b06d42c03e74c8fe651f80977fa8b9a152f8f2f34968cd5fa3aa39
|
4
|
+
data.tar.gz: 322d93245bd5a37e71b08b8c439d76f5988615ae64973d574f423b7b0aa9feb6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2bd82a65f2a1183ad441a4c7babfa6d68ccb49818ed68319278f5da97657bf22939106c0063391f5e812227509a3278a440c682267d4f7dad6a41e5d19299f40
|
7
|
+
data.tar.gz: 22cb70596e5e6054b50c27d628c3e4abfb4eebff8cdd5332b9a606001749fd77acb072561435c7a88c9d5ecaa21f80bb008a0f6e38d5d0caff7f9bc9137a4968
|
@@ -34,10 +34,10 @@ class Api::V1::InfoController < Api::V1::BaseController
|
|
34
34
|
# GET '/api/v1/info/schema'
|
35
35
|
def schema
|
36
36
|
pivot = {}
|
37
|
-
if Rails.env.development?
|
38
|
-
|
39
|
-
|
40
|
-
end
|
37
|
+
# if Rails.env.development?
|
38
|
+
# Rails.configuration.eager_load_namespaces.each(&:eager_load!) if Rails.version.to_i == 5 #Rails 5
|
39
|
+
# Zeitwerk::Loader.eager_load_all if Rails.version.to_i >= 6 #Rails 6
|
40
|
+
# end
|
41
41
|
ApplicationRecord.subclasses.each do |d|
|
42
42
|
model = d.to_s.underscore.tableize
|
43
43
|
pivot[model] ||= {}
|
@@ -61,10 +61,10 @@ class Api::V1::InfoController < Api::V1::BaseController
|
|
61
61
|
# GET '/api/v1/info/dsl'
|
62
62
|
def dsl
|
63
63
|
pivot = {}
|
64
|
-
if Rails.env.development?
|
65
|
-
|
66
|
-
|
67
|
-
end
|
64
|
+
# if Rails.env.development?
|
65
|
+
# Rails.configuration.eager_load_namespaces.each(&:eager_load!) if Rails.version.to_i == 5 #Rails 5
|
66
|
+
# Zeitwerk::Loader.eager_load_all if Rails.version.to_i >= 6 #Rails 6
|
67
|
+
# end
|
68
68
|
ApplicationRecord.subclasses.each do |d|
|
69
69
|
model = d.to_s.underscore.tableize
|
70
70
|
pivot[model] = (d.instance_methods(false).include?(:json_attrs) && !d.json_attrs.blank?) ? d.json_attrs : nil
|
data/lib/thecore_api/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: thecore_api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.5.
|
4
|
+
version: 1.5.12
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Gabriele Tassoni
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-02-
|
11
|
+
date: 2020-02-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thecore
|
@@ -161,7 +161,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
161
161
|
- !ruby/object:Gem::Version
|
162
162
|
version: '0'
|
163
163
|
requirements: []
|
164
|
-
|
164
|
+
rubyforge_project:
|
165
|
+
rubygems_version: 2.7.6.2
|
165
166
|
signing_key:
|
166
167
|
specification_version: 4
|
167
168
|
summary: Taris API.
|