statham 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/statham/document.rb +7 -3
- data/lib/statham/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a6416303d3bcbeb8cfe0342f29ded044aa259cc5
|
4
|
+
data.tar.gz: c5c71a1b6aae26ae0b58acd14b20ed14c5e1311d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3195ffe3daf9df99e9d7141ef3cd9a58158b012331fcb8a9b493bf841ecde2d2419f421c0578323d03021824f2d87c9aaa1c77985d9f8fbda97b41a94a47e0d1
|
7
|
+
data.tar.gz: e36dcc66f17214fa19ad7776710af34b71d68563ae384aafd17062044f5c50a5804c170e4cf425e6d3fb98bb1c0a71470d8cebb6eabe6d47f56bd3cca2680b07
|
data/lib/statham/document.rb
CHANGED
@@ -41,9 +41,13 @@ module Statham
|
|
41
41
|
#
|
42
42
|
# Returns true if type is json, false otherwise.
|
43
43
|
def json_type_column?(column_name)
|
44
|
-
|
45
|
-
|
46
|
-
|
44
|
+
begin
|
45
|
+
columns.detect do |column|
|
46
|
+
column.name == column_name.to_s
|
47
|
+
end.type == :json
|
48
|
+
rescue
|
49
|
+
# Failed to fetch columns: Database have not been loaded nor migrated.
|
50
|
+
end
|
47
51
|
end
|
48
52
|
|
49
53
|
# Internal: Collection of JSON attributes used as parent attributes for a
|
data/lib/statham/version.rb
CHANGED