agile_serializer 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
data/README.markdown CHANGED
@@ -1,7 +1,9 @@
1
- The fork
2
- ========
1
+ Agile Serializer, The fork
2
+ ==========================
3
3
 
4
- This fork changes the core behavior of SerializeWithOptions plugin, it follows deep relations so it's up to you to handle infinite recursions (SerializeWithOptions drops 1+ level relations). This repo is a work in progress so use it with care.
4
+ This fork changes the core behavior of SerializeWithOptions plugin, it follows deep relations so it's up to you to handle infinite recursions (SerializeWithOptions drops 1+ level relations). This repo is a work in progress and the documentation isn't up to date so... use the source, Luke.
5
+
6
+ gem install agile_serializer
5
7
 
6
8
  SerializeWithOptions
7
9
  ====================
@@ -32,7 +32,7 @@ module AgileSerializer
32
32
  hash.merge(class_name)
33
33
  else
34
34
  begin
35
- klass = class_name.to_s.classify.constantize
35
+ klass = reflections[class_name].options[:class_name].constantize
36
36
  hash[class_name] = klass.serialization_options(set)
37
37
  hash
38
38
  rescue NameError
@@ -1,3 +1,3 @@
1
1
  module AgileSerializer
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 0
8
- - 1
9
- version: 0.0.1
8
+ - 2
9
+ version: 0.0.2
10
10
  platform: ruby
11
11
  authors:
12
12
  - Christos Trochalakis
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-05-18 00:00:00 +03:00
17
+ date: 2010-05-26 00:00:00 +03:00
18
18
  default_executable:
19
19
  dependencies: []
20
20