agile_serializer 0.0.2 → 0.0.3

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.
@@ -32,7 +32,8 @@ module AgileSerializer
32
32
  hash.merge(class_name)
33
33
  else
34
34
  begin
35
- klass = reflections[class_name].options[:class_name].constantize
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
@@ -1,3 +1,3 @@
1
1
  module AgileSerializer
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 0
8
- - 2
9
- version: 0.0.2
8
+ - 3
9
+ version: 0.0.3
10
10
  platform: ruby
11
11
  authors:
12
12
  - Christos Trochalakis