mongo_light 0.0.3 → 0.0.4

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.
@@ -45,6 +45,7 @@ module MongoLight
45
45
  end
46
46
  module InstanceMethods
47
47
  def initialize(attributes = {})
48
+ attributes = {} unless attributes
48
49
  @attributes = {:_id => (attributes['_id'] || attributes[:_id] || Id.new)}
49
50
  attributes.each do |k,v|
50
51
  if self.class.map_include?(k)
@@ -1,3 +1,3 @@
1
1
  module MongoLight
2
- Version = '0.0.3'
2
+ Version = '0.0.4'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mongo_light
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2011-10-25 00:00:00.000000000 Z
12
+ date: 2011-10-26 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description:
15
15
  email: