remarkable_mongoid 0.2.0 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -7,6 +7,10 @@ module Remarkable::Mongoid
7
7
  def reference_many(attr)
8
8
  AssociationMatcher.new(attr, ::Mongoid::Associations::ReferencesMany)
9
9
  end
10
+
11
+ def reference_many_as_array(attr)
12
+ AssociationMatcher.new(attr, ::Mongoid::Associations::ReferencesManyAsArray)
13
+ end
10
14
 
11
15
  def be_referenced_in(attr)
12
16
  AssociationMatcher.new(attr, ::Mongoid::Associations::ReferencedIn)
@@ -53,4 +57,4 @@ module Remarkable::Mongoid
53
57
  end
54
58
  end
55
59
  end
56
- end
60
+ end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: remarkable_mongoid
3
3
  version: !ruby/object:Gem::Version
4
- hash: 23
4
+ hash: 19
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
- - 2
8
+ - 3
9
9
  - 0
10
- version: 0.2.0
10
+ version: 0.3.0
11
11
  platform: ruby
12
12
  authors:
13
13
  - Brian Cardarella
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-07-28 00:00:00 -04:00
18
+ date: 2010-07-30 00:00:00 -04:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency