pg_serializable 1.2.1 → 1.2.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: 0cbca974883634070591992459c56dd4b61ce5aed80b44fb9e654c066a811178
4
- data.tar.gz: 5dfce37ed22074421039206c2c009afb40c3e6584e85009fe271e302d52f01d0
3
+ metadata.gz: f1909d56bad3b23411c7ce220bcf850489f64a20a653d064b3029a85ded8b063
4
+ data.tar.gz: 8a677cf086f7365a1984ba756d81360b731e38e543ec9ee512d6a7631af40bce
5
5
  SHA512:
6
- metadata.gz: 71db88cd7d77af0bad5a5f2c1089789634d7a9ed9979a48d814836f235f163b52b5f081322ce9cd657c4fcbba21fc77098beac93640b88f7afdaa66953a93661
7
- data.tar.gz: f20d72449b9e379101dde1435ca9b134a23f2be9627b6ad071ccad6ed03a1f13f6c1e52c23927e738875b2e8f33350ec4c905319ac1e82e88a687a136a0c9e1b
6
+ metadata.gz: d78dc887bf5a0b79514befdd4bd6ca34621a26340e62756ccd60e45d076d226f135d6777dab4ade5ef02eaa4f5346209b305b6967cac511392030f95799b8348
7
+ data.tar.gz: 9b71a136e79e0b768ef7f113ea8a570c3edaab932eccd60ba8ad920f819630c61fac7501e0f92d2da2fd9e0a5914b8f41e469a7294c69aabcba0a72f5b06b244
@@ -1,3 +1,3 @@
1
1
  module PgSerializable
2
- VERSION = "1.2.1"
2
+ VERSION = "1.2.2"
3
3
  end
@@ -37,7 +37,10 @@ module PgSerializable
37
37
 
38
38
  def serializable(&blk)
39
39
  trait_manager.instance_eval &blk
40
- validate_traits!
40
+ begin
41
+ validate_traits!
42
+ rescue ActiveRecord::NoDatabaseError
43
+ end
41
44
  end
42
45
 
43
46
  def trait_manager
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pg_serializable
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.1
4
+ version: 1.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - matthewjf
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-04-11 00:00:00.000000000 Z
11
+ date: 2019-04-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler