thecore_api 1.5.9 → 1.5.10
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 +1 -3
- data/lib/thecore_api/version.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: d34f33ca2e4e62557a788e09bb158cdd1cddc1ff64015947dcc90c15ccb5bbed
|
4
|
+
data.tar.gz: 6fbd77a0d9f789e64444be579f2252dd0f4705fb340e5c00dad570ec79f51079
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dbf13f342450fa6935f7c92dfb921e221893514278cfc134b56240e012709eeb167118fab6089b81f4f7cc6acaa8d8837d392f1d5031378c0ebaf419ce75be8f
|
7
|
+
data.tar.gz: e669ca4c0baf19045b8f4a3b2f89ebf8dafaef21e0fc65e7f7f7dd36b7f708757190aa2efeb862978b87bbdd988e6fac4045fc7f2f4660cc10917f8c37bc33ee
|
@@ -67,9 +67,7 @@ class Api::V1::InfoController < Api::V1::BaseController
|
|
67
67
|
end
|
68
68
|
ApplicationRecord.subclasses.each do |d|
|
69
69
|
model = d.to_s.underscore.tableize
|
70
|
-
pivot[model]
|
71
|
-
|
72
|
-
pivot[model][:dsl] ||= (d.instance_methods(false).include?(:json_attrs) && !d.json_attrs.blank?) ? d.json_attrs : nil
|
70
|
+
pivot[model] = (d.instance_methods(false).include?(:json_attrs) && !d.json_attrs.blank?) ? d.json_attrs : nil
|
73
71
|
end
|
74
72
|
render json: pivot.to_json, status: 200
|
75
73
|
end
|
data/lib/thecore_api/version.rb
CHANGED