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 +4 -4
- data/lib/golden/setting/base.rb +8 -0
- data/lib/golden/setting/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f5ef7b0642fbe4c30a6150d682b2a9d0c9d451059907ca1e99bdbd51092f1659
|
4
|
+
data.tar.gz: 60ba763e1d9215bd7db4db0a215a91953b7290e0efdfb03681b9ab00d2077878
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 111ba2611a97cc1b18642ef24df9030b22f2c74128f8774cf668b946689432ed03d5f2b579d9fd1b1b5760f0ffd49145949d10dc715bedd91dede94fb7196712
|
7
|
+
data.tar.gz: b2b4274594f0fc5b261b41f2547e453967d19fbeade977bf1e8d19c8f8c4555fc47520218a4946000377a17c108f5c7cd96e2cf79cbd8bddee9e6348c56bd7ef
|
data/lib/golden/setting/base.rb
CHANGED
@@ -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
|
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.
|
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-
|
11
|
+
date: 2021-06-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|