super_serialize 0.0.9 → 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: fa2eb9bd7cf2e6a67f44ba8023b073a2feda7e5f
4
- data.tar.gz: 5d4ef30ec088bff5a97f86e91d3b04daa62633dc
3
+ metadata.gz: 88a3a0be791471423fc3134fa4f3509aa16abef6
4
+ data.tar.gz: a683d0b75f9cea850c949ac4f9a69f14017c132d
5
5
  SHA512:
6
- metadata.gz: 78c13ccc12a01beb2efbf9f58387de94cac258ea4466ffeda57bbda419518fe7c55b3b1297b896be8f196331321e4da450a4a08ec2ccefee72ab63f4088e9612
7
- data.tar.gz: 60bbd782b6a84c1688b0ed56a46bcd8e21aa7be41c1db70acb69951106c8245ba2c4fa8f42ff423f770268bc2fe93eb6c41961487968a6cbd742921ad223c6d1
6
+ metadata.gz: 49bef9949d1032da5380fd8d896bd2e8449b6c1fabb5e0e82416c24eb8bbfbaeef9ebde9a8de1971214a6b01be1ea1aa2788c371a11de7e64e72d8495585429f
7
+ data.tar.gz: 1f312db584bd12ea487697bdd9b1a4329604ed807a83b9aa0c828f9d1e1315669a0013d5cd261871bcd9f65e33373b5beb05d649b0c41b81be29468a0924dcdd
@@ -1,3 +1,3 @@
1
1
  module SuperSerialize
2
- VERSION = "0.0.9"
2
+ VERSION = "0.1.0"
3
3
  end
@@ -6,6 +6,10 @@ module SuperSerialize
6
6
 
7
7
  module ClassMethods
8
8
  def super_serialize(*attr_names)
9
+ # This is to guard against trying to execute code for a Rails model where
10
+ # the table has not been created yet.
11
+ return unless ActiveRecord::Base.connection.table_exists?(table_name)
12
+
9
13
  # === Arguments
10
14
  # +attr_names+:: the name of the of the attributes to be super_serialized
11
15
  # === Example
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: super_serialize
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.9
4
+ version: 0.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ricardo Quiñones
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-04-08 00:00:00.000000000 Z
11
+ date: 2015-04-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails