agile_serializer 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/agile_serializer.rb +2 -1
- data/lib/agile_serializer/version.rb +1 -1
- metadata +2 -2
data/lib/agile_serializer.rb
CHANGED
@@ -32,7 +32,8 @@ module AgileSerializer
|
|
32
32
|
hash.merge(class_name)
|
33
33
|
else
|
34
34
|
begin
|
35
|
-
|
35
|
+
true_name = reflections[class_name].options[:class_name] || class_name
|
36
|
+
klass = true_name.to_s.classify.constantize
|
36
37
|
hash[class_name] = klass.serialization_options(set)
|
37
38
|
hash
|
38
39
|
rescue NameError
|