noticed 1.3.0 → 1.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/noticed/model.rb +4 -0
- data/lib/noticed/version.rb +1 -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: 723d5a6c315431cfda734c7aca5295724d41ba28c60bce56c0bc5e2c2d8c2aa4
|
4
|
+
data.tar.gz: dae18d01e3df0fb584379764adca818ad7891e6197856272da692d349e7de56f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 060befb7e545c4ed8a9a240545c7618eb33bf259b9e14bcb8f2dca03dc158dcf94cbf95d14df67d722e34e749d49e13e914a720988dd8f7c73ffbb4d87eb717d
|
7
|
+
data.tar.gz: 006c05a55f2d158043f0b372f8fba9f7c8ac918551200102aaa6a12f918003905a530fda473b6bb30e9f70dea80a56ad870b5170099ebe8a6ddac8b40a520ad0
|
data/lib/noticed/model.rb
CHANGED
@@ -24,12 +24,16 @@ module Noticed
|
|
24
24
|
end
|
25
25
|
|
26
26
|
def noticed_coder
|
27
|
+
return Noticed::TextCoder unless table_exists?
|
28
|
+
|
27
29
|
case attribute_types["params"].type
|
28
30
|
when :json, :jsonb
|
29
31
|
Noticed::Coder
|
30
32
|
else
|
31
33
|
Noticed::TextCoder
|
32
34
|
end
|
35
|
+
rescue ActiveRecord::NoDatabaseError
|
36
|
+
Noticed::TextCoder
|
33
37
|
end
|
34
38
|
end
|
35
39
|
|
data/lib/noticed/version.rb
CHANGED