thecore_api 1.5.9 → 1.5.10

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: 01ae48e93fb6f43a6fc2deefc7aaafdae32beb0d4ea2fa19dad013f700add7b6
4
- data.tar.gz: 5c21136fbcbd4459e6541d1daa46fcf1745ef337c4d8f4adac3a548c82525678
3
+ metadata.gz: d34f33ca2e4e62557a788e09bb158cdd1cddc1ff64015947dcc90c15ccb5bbed
4
+ data.tar.gz: 6fbd77a0d9f789e64444be579f2252dd0f4705fb340e5c00dad570ec79f51079
5
5
  SHA512:
6
- metadata.gz: ef73d9226a218b7066cdbb624e552ed9984e2f7b5e1a4e08aa3365dc6c390169139d907b74ae635d5b819c47be0f7009bb2fdadbbda495274a643868433d0a84
7
- data.tar.gz: cded6fcd74ee607cac31dfba0753eac7284bee716ada39c05af8b74b2f9e757459c29d63ce7b509cf65602f81b9b7149401ca8e4d111e1a46d54385ad8edde03
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
@@ -1,3 +1,3 @@
1
1
  module ThecoreApi
2
- VERSION = "1.5.9".freeze
2
+ VERSION = "1.5.10".freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: thecore_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.9
4
+ version: 1.5.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gabriele Tassoni