super_serialize 0.0.1 → 0.0.2

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: 49276a8cd980eecd175a71086a6b864818148eb2
4
- data.tar.gz: cac85ec1846157b96b1821e4dbf8bb9015b00f7a
3
+ metadata.gz: 5cfab41d4f18883cf401e36df31939fcfabad8f7
4
+ data.tar.gz: fca731a736d030d200164fe7a5e216286e3b9938
5
5
  SHA512:
6
- metadata.gz: ff53b0e707c04c0e894ca9021644603237341d7cde910879b9fcd45fa0a9646e6a836efd2b38e929b5ddc03f98fcb15691b21fa7762acc1a673d8ba09a4e8904
7
- data.tar.gz: 37f8c8ebdee0a8a1c1a4d9915b2501ce61914aa4e5329b7e1c42e089f091f4f2391c330dbdf649450b38d9f89144002c4cb0fe9b1ee6bf61cfd6d68facc75e74
6
+ metadata.gz: 299935519135ba351a1e46856d4d35b3ee7a0dc11a62e367bec77f789b6405b803170b512039b8c4bdc5cae0b71ef49a893c0d14aca5be45b94f2abbe2af803b
7
+ data.tar.gz: 18a26308095e10619bf9cda6e91143694a136c5b9c16ce4d92b2e6eb139f5ca146359b6ca1cecf9f8a99f4bb8cbe619542756a714127a9b1390941fdaf117385
@@ -1,3 +1,3 @@
1
1
  module SuperSerialize
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
@@ -2,11 +2,6 @@ module SuperSerialize
2
2
  extend ActiveSupport::Concern
3
3
 
4
4
  included do
5
- # Validations for super serialized columns
6
- validate :check_if_super_serialized_attributes_are_valid_yaml
7
-
8
- # Callback to yamlize super serialized columngs just prior to saving to the database
9
- before_save :yamlize_super_serialized_attributes
10
5
  end
11
6
 
12
7
  module ClassMethods
@@ -110,6 +105,12 @@ module SuperSerialize
110
105
  end
111
106
 
112
107
  class_eval do
108
+ # Validations for super serialized columns
109
+ validate :check_if_super_serialized_attributes_are_valid_yaml
110
+
111
+ # Callback to yamlize super serialized columngs just prior to saving to the database
112
+ before_save :yamlize_super_serialized_attributes
113
+
113
114
  unless const_defined?('SUPER_SERIALIZED_ATTRIBUTES')
114
115
  const_set('SUPER_SERIALIZED_ATTRIBUTES', attr_names)
115
116
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: super_serialize
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ricardo Quiñones