thecore_api 1.4.1 → 1.4.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2e5503fc088ba2d7eea21ba020fa5d76432762e07e811b1a850c9f9f91e3a9bc
4
- data.tar.gz: 8c5fa1f56c278de13a2e47e0f3ba46fc760e2ac300cbee581f8f8bd5e9250840
3
+ metadata.gz: 649421e70773b321338691a8393dbf79c85036a0e09e4abd4a3a48e9219cab74
4
+ data.tar.gz: fd5797b1bf28846babac2bf595189e8b6d74fb062bd273227332d2d428c018c1
5
5
  SHA512:
6
- metadata.gz: 718204f8ebf3de9282992a3c9e197e8b180189d971fc8ffb187a5fd84e3a9b77bd7b48a2af7b4c1e789372c3a2d4707dc08473944e4dd3c22264e118c883b678
7
- data.tar.gz: 1cba68ccae794d1faafb7f2a19ba77645886b33aea6688b56f0088beed779fc2f2aa511a5f13f966ea768450ab66c72b850b1296d1cf60670d32dfdfb8f698d7
6
+ metadata.gz: 3bb6636c2b157ca34115fcdf0830a4d8f9e4dd910f7c394f9095062a0c73ef8e17ce3b2d6766e9d89589bf6e9e5a88c8e08186eb13a713246ff1e0a0480306bf
7
+ data.tar.gz: a457df07061e2c74d1c5ccd17c5f497ad8782fc7f95a28fa38725dc48bf556d2deff2ca85248a1e3745dc548002c547ac7f9cd45b92ebd367b11a4bd85fd3da6
@@ -38,7 +38,7 @@ class Api::V1::InfoController < Api::V1::BaseController
38
38
  Zeitwerk::Loader.eager_load_all if Rails.version.to_i >= 6 #Rails 6
39
39
  end
40
40
  ApplicationRecord.subclasses.each do |d|
41
- model = d.to_s.underscore
41
+ model = d.to_s.underscore.tableize
42
42
  pivot[model] ||= {}
43
43
  d.columns_hash.each_pair do |key, val|
44
44
  pivot[model][key] = val.type
@@ -1,3 +1,3 @@
1
1
  module ThecoreApi
2
- VERSION = "1.4.1".freeze
2
+ VERSION = "1.4.2".freeze
3
3
  end
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.4.1
4
+ version: 1.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gabriele Tassoni
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-09-24 00:00:00.000000000 Z
11
+ date: 2019-09-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thecore