better_record 0.22.7 → 0.22.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/better_record/version.rb +1 -1
- data/lib/core_ext/object.rb +5 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2e13eb7421f2db6c4a28fadbc29e7da98407b66aed50a0e7ca1b8cfba7eb9ace
|
4
|
+
data.tar.gz: 0d494bfe7a07fd785b78355906e6466d5f618523def30ce7fe575d4bb34fa314
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3ed3935165dc4c8bd195a1cb05d13c84cbe66541d84c7ef0e8b2bed5e7982bcb787b7c61e9a8e7c7c60f41c6bbffcfd0b7a0fc341160f8aae3381e57aafc1875
|
7
|
+
data.tar.gz: 87523e0906d2a015326b8fd71f929b253191493f61c4c25ac2c0cc536acb628b7a463b90abaeaea343a14b119e13a67a4c8564970f0eb54d007b3e2f4dc9543b
|
data/lib/core_ext/object.rb
CHANGED
@@ -47,6 +47,10 @@ class Object
|
|
47
47
|
end
|
48
48
|
|
49
49
|
def yes_no_to_s
|
50
|
-
!!self == self ? (self
|
50
|
+
!!self == self ? BetterRecord::ThreeState.titleize(self) : to_s
|
51
|
+
end
|
52
|
+
|
53
|
+
def y_n_to_s
|
54
|
+
!!self == self ? BetterRecord::ThreeState.convert_to_three_state(self) : to_s
|
51
55
|
end
|
52
56
|
end
|