golden-setting 0.8.1 → 0.8.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: 0b5baff9cf95a3d7c1c74827ceac8c43015becf985b60f4b41976d51cebc3bb0
4
- data.tar.gz: 9599bdf9fd96f0dc7069b90a96ea0385553f4093c42e9a8e26553a35ee15b6c6
3
+ metadata.gz: f5ef7b0642fbe4c30a6150d682b2a9d0c9d451059907ca1e99bdbd51092f1659
4
+ data.tar.gz: 60ba763e1d9215bd7db4db0a215a91953b7290e0efdfb03681b9ab00d2077878
5
5
  SHA512:
6
- metadata.gz: 5b85402c0d35af23bc4c608ad54a89ddbee9df7d9f3a60b0898ddda564f888b1711a7bbe1ea97a3e96486ce48eea031f7938b0d943983e3e0699a5009ba517a4
7
- data.tar.gz: 220634ecbf8e3e1c2a8b442a846ce9c6215988d0e9ed27ee15b337d8a92bde6f411aa3900ae8e554d3d794b945c99382b7f0dbd910d667f1dc76e029ff79b902
6
+ metadata.gz: 111ba2611a97cc1b18642ef24df9030b22f2c74128f8774cf668b946689432ed03d5f2b579d9fd1b1b5760f0ffd49145949d10dc715bedd91dede94fb7196712
7
+ data.tar.gz: b2b4274594f0fc5b261b41f2547e453967d19fbeade977bf1e8d19c8f8c4555fc47520218a4946000377a17c108f5c7cd96e2cf79cbd8bddee9e6348c56bd7ef
@@ -23,6 +23,14 @@ module Golden
23
23
  without_resource.select(fields)
24
24
  end
25
25
 
26
+ # For SimpleForm#find_attribute_column
27
+ def has_attribute? name
28
+ named(name).exists?
29
+ end
30
+
31
+ # For SimpleForm#find_attribute_column
32
+ # def type_for_attribute name; end
33
+
26
34
  def method_missing method, *args
27
35
  super method, *args
28
36
  rescue NoMethodError
@@ -1,5 +1,5 @@
1
1
  module Golden
2
2
  module Setting
3
- VERSION = '0.8.1'
3
+ VERSION = '0.8.2'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: golden-setting
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.1
4
+ version: 0.8.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tse-Ching Ho
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-05-19 00:00:00.000000000 Z
11
+ date: 2021-06-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord