serialize_variants 0.1.8 → 0.1.9
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +1 -1
- data/lib/serialize_variants.rb +3 -2
- metadata +2 -2
data/Rakefile
CHANGED
data/lib/serialize_variants.rb
CHANGED
@@ -20,10 +20,11 @@ module SerializeVariants
|
|
20
20
|
def serializable_hash(options = nil)
|
21
21
|
options ||= {}
|
22
22
|
variant = options[:variant]
|
23
|
-
force = options[:force] || {}
|
24
23
|
|
25
24
|
if options[:variant]
|
26
|
-
|
25
|
+
opts = (self.class.serialize_variant(options[:variant]) || {})
|
26
|
+
opts[:variant] = options[:variant]
|
27
|
+
res = super(opts)
|
27
28
|
else
|
28
29
|
res = super(options)
|
29
30
|
end
|
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: serialize_variants
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 0.1.
|
5
|
+
version: 0.1.9
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Nicolas Goy
|
@@ -10,7 +10,7 @@ autorequire:
|
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
12
|
|
13
|
-
date: 2011-06-
|
13
|
+
date: 2011-06-27 00:00:00 +02:00
|
14
14
|
default_executable:
|
15
15
|
dependencies: []
|
16
16
|
|