standardapi 7.1.3 → 7.1.4
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 32cddbd957fc3a489fdb218dd229a7c2c9a0c6c0da919a0ae88d053447f80f1c
|
4
|
+
data.tar.gz: 8771b13221d1ebfdab96e26f482adbb6fa409cac70da0b5c6b8722628e63e35e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c1b60baae979d8e0787cb22440b5f8030c4f2d398bc32aba9238a50af60b3b88a69fd0b23ccf64a965d06642b53686c41901c072d5f6d91a50144ff599174d7e
|
7
|
+
data.tar.gz: bf28b97423f785ee69cd138931b40e94737c6eb7de6ef662280d9deda64f4ee7dc366e66d89133cc999aa79a072db3d4c36f4f5889420be19d0af5ae267ea012
|
data/lib/standard_api/version.rb
CHANGED
@@ -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.
|
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-
|
11
|
+
date: 2024-10-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|