mongoid-nested-serialization 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
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
|
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.
|
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: -
|
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: -
|
164
|
+
hash: -3244383078949918802
|
165
165
|
requirements: []
|
166
166
|
rubyforge_project:
|
167
167
|
rubygems_version: 1.8.24
|