mongoid-serializer 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 17785512c923879da4e67fa785a4dae5aa88e131
4
- data.tar.gz: c96bb37b19a0c70b068758fa7cdc820098abcd16
3
+ metadata.gz: 568b74720fec46b9ba26f6c613cd185ad1a54714
4
+ data.tar.gz: 9d0f352f26a370837e396d7696a6e57ecbf3639c
5
5
  SHA512:
6
- metadata.gz: 87fbbbdcdb6d35093e53ffaa6c5661a1140f84264e83052df5c457bf12d2ad981b03fe75a58d738d479aa335da4e93d97d581df76e073824c169acbb529947a4
7
- data.tar.gz: fbd5b1c71e490aeb22f8deedcdfc9b577fdb5ef0bad7a486c6d541e8fdb24f0f772d6db39bebdb086d35420a4ac04df7a2c0bf1511cd00bb4f73be6326bf2500
6
+ metadata.gz: 81168f3f193e24c78b6e05ef167d69483ac3ccd3f5fbd2b32776fdd63d69a992322dddf6d9fe439a3a95e1ef0b21d53f7f5cf720985a020aeb4392c97e0f428f
7
+ data.tar.gz: e3e6aa2ff4ee9710b0e8eddee78c937e062d6a1452b87f08231ff789fa32ef9f8610d8e5a4daa84843a8228b5c7ff322e47f92c3e635a49dcefe542c5461841c
data/README.md CHANGED
@@ -5,6 +5,10 @@ Will add `id` as an available attribute, which can be used as the primary key as
5
5
 
6
6
  Inspired by the discussion here: http://stackoverflow.com/questions/11571777/ember-data-and-mongodb-how-to-handle-id
7
7
 
8
+ Dependency: *active_model-shaz*
9
+
10
+ [active_model-shaz](https://github.com/kristianmandrup/active_model-shaz)
11
+
8
12
  Note: Should work for Mongoid 3+
9
13
 
10
14
  ## Installation
@@ -22,7 +22,7 @@ end
22
22
  module ActiveModel
23
23
  class MongoidSerializer < StatusSerializer
24
24
  def id
25
- object._id
25
+ object._id.to_s
26
26
  end
27
27
  end
28
28
  end
@@ -1,5 +1,5 @@
1
1
  module Mongoid
2
2
  module Serializer
3
- VERSION = "0.0.4"
3
+ VERSION = "0.0.5"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mongoid-serializer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kristian Mandrup
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-04-13 00:00:00.000000000 Z
11
+ date: 2014-03-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mongoid