standardapi 7.1.3 → 7.1.4

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: 692542999da28b20821233c6649dcc8e4b66bdf76183b44ab665ff2452cd0cfd
4
- data.tar.gz: 92cf5184a56a2695f34478bd29895d5aa6ba01181548eb77a990da5b8e62f28b
3
+ metadata.gz: 32cddbd957fc3a489fdb218dd229a7c2c9a0c6c0da919a0ae88d053447f80f1c
4
+ data.tar.gz: 8771b13221d1ebfdab96e26f482adbb6fa409cac70da0b5c6b8722628e63e35e
5
5
  SHA512:
6
- metadata.gz: 99356387601124215ce2d86926cdb98d04b38c3141d4a6affa7ba6464c2f0d6342fe506ce34859a284499e626eb1cc0c2573364cf13cb4d8d9216210b24a8120
7
- data.tar.gz: b54933f7376b9f672f2a37ef8c2fd21893c37650907b906b6ccfdc2f489a0b37a6bc3fa639e3e374d023a8645557c33b408a0024763d2ae8f24a9bc822154975
6
+ metadata.gz: c1b60baae979d8e0787cb22440b5f8030c4f2d398bc32aba9238a50af60b3b88a69fd0b23ccf64a965d06642b53686c41901c072d5f6d91a50144ff599174d7e
7
+ data.tar.gz: bf28b97423f785ee69cd138931b40e94737c6eb7de6ef662280d9deda64f4ee7dc366e66d89133cc999aa79a072db3d4c36f4f5889420be19d0af5ae267ea012
@@ -1,3 +1,3 @@
1
1
  module StandardAPI
2
- VERSION = '7.1.3'
2
+ VERSION = '7.1.4'
3
3
  end
@@ -71,7 +71,7 @@ else
71
71
  json.set! 'auto_populated', !!column.auto_populated? if column.respond_to?(:auto_populated?)
72
72
 
73
73
  json.set! 'readonly', (if controller.respond_to?("#{ model.model_name.singular }_attributes")
74
- !controller.send("#{ model.model_name.singular }_attributes").include?(column.name)
74
+ !controller.send("#{ model.model_name.singular }_attributes").map(&:to_s).include?(column.name)
75
75
  else
76
76
  model.readonly_attribute?(column.name)
77
77
  end)
@@ -81,7 +81,7 @@ else
81
81
  json.set! 'auto_populated', !!column.auto_populated? if column.respond_to?(:auto_populated?)
82
82
 
83
83
  json.set! 'readonly', (if controller.respond_to?("#{ model.model_name.singular }_attributes")
84
- !controller.send("#{ model.model_name.singular }_attributes").include?(column.name)
84
+ !controller.send("#{ model.model_name.singular }_attributes").map(&:to_s).include?(column.name)
85
85
  else
86
86
  true
87
87
  end)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: standardapi
3
3
  version: !ruby/object:Gem::Version
4
- version: 7.1.3
4
+ version: 7.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Bracy
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-10-23 00:00:00.000000000 Z
11
+ date: 2024-10-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails