mongoid-nested-serialization 0.0.5 → 0.0.6

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.
data/README.md CHANGED
@@ -48,6 +48,15 @@ User.find_by_json(json)
48
48
  # => <User id:123>
49
49
  ```
50
50
 
51
+ You can also talk directly with our classes:
52
+
53
+ ```ruby
54
+ json = Mongoid::NestedSerialization::Serializer.new(user).to_json
55
+ # => { class_name: "Account", id: 456, embedded: { collection: "users", id: 123 } }
56
+ Mongoid::NestedSerialization::Finder.find(json)
57
+ # => <User id:123>
58
+ ```
59
+
51
60
  ## Contributing
52
61
 
53
62
  1. Fork it
@@ -1,3 +1,4 @@
1
+ require "mongoid/nested_serialization"
1
2
  require "multi_json"
2
3
 
3
4
  module Mongoid
@@ -1,3 +1,4 @@
1
+ require "mongoid/nested_serialization"
1
2
  require "multi_json"
2
3
 
3
4
  module Mongoid
@@ -1,5 +1,5 @@
1
1
  module Mongoid
2
2
  module NestedSerialization
3
- VERSION = "0.0.5"
3
+ VERSION = "0.0.6"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mongoid-nested-serialization
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -152,7 +152,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
152
152
  version: '0'
153
153
  segments:
154
154
  - 0
155
- hash: -98816556624355443
155
+ hash: -3244383078949918802
156
156
  required_rubygems_version: !ruby/object:Gem::Requirement
157
157
  none: false
158
158
  requirements:
@@ -161,7 +161,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
161
161
  version: '0'
162
162
  segments:
163
163
  - 0
164
- hash: -98816556624355443
164
+ hash: -3244383078949918802
165
165
  requirements: []
166
166
  rubyforge_project:
167
167
  rubygems_version: 1.8.24