serialist 0.5.1 → 0.5.2
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/serialist/serialist_module.rb +1 -2
- data/serialist.gemspec +1 -1
- metadata +1 -1
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.5.
|
1
|
+
0.5.2
|
@@ -69,14 +69,13 @@ module Serialist
|
|
69
69
|
slug = self.send(self.class.serialist_field)
|
70
70
|
case method.to_s.last
|
71
71
|
when "?"
|
72
|
-
slug && slug[method.to_s[0..-2].to_sym] == (args && args.first || "true")
|
73
72
|
if args.empty?
|
74
73
|
slug && ![nil, false, "false", :false].include?(slug[method.to_s[0..-2].to_sym])
|
75
74
|
else
|
76
75
|
slug && (slug[method.to_s[0..-2].to_sym] == args.first)
|
77
76
|
end
|
78
77
|
when "="
|
79
|
-
self.send(
|
78
|
+
self.send(self.class.serialist_field.to_s + "=", Hash.new) unless slug
|
80
79
|
self.send(self.class.serialist_field)[method.to_s[0..-2].to_sym] = args.first
|
81
80
|
else
|
82
81
|
slug && slug[method.to_sym]
|
data/serialist.gemspec
CHANGED