mongoid 2.0.0.beta.8 → 2.0.0.beta.9
Sign up to get free protection for your applications and to get access to all the features.
@@ -8,7 +8,9 @@ module Mongoid #:nodoc:
|
|
8
8
|
|
9
9
|
module ClassMethods #:nodoc:
|
10
10
|
def raise_or_return(value)
|
11
|
-
|
11
|
+
unless value.nil? || value.is_a?(::Array)
|
12
|
+
raise Mongoid::Errors::InvalidType.new(::Array, value)
|
13
|
+
end
|
12
14
|
value
|
13
15
|
end
|
14
16
|
|
@@ -5,10 +5,6 @@ module Mongoid #:nodoc:
|
|
5
5
|
# This module converts objects into mongoid related objects.
|
6
6
|
module Conversions #:nodoc:
|
7
7
|
extend ActiveSupport::Concern
|
8
|
-
# Converts this object to a hash of attributes
|
9
|
-
def mongoidize
|
10
|
-
self.raw_attributes
|
11
|
-
end
|
12
8
|
|
13
9
|
module ClassMethods
|
14
10
|
def set(value)
|
data/lib/mongoid/version.rb
CHANGED
metadata
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mongoid
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 62196465
|
5
5
|
prerelease: true
|
6
6
|
segments:
|
7
7
|
- 2
|
8
8
|
- 0
|
9
9
|
- 0
|
10
10
|
- beta
|
11
|
-
-
|
12
|
-
version: 2.0.0.beta.
|
11
|
+
- 9
|
12
|
+
version: 2.0.0.beta.9
|
13
13
|
platform: ruby
|
14
14
|
authors:
|
15
15
|
- Durran Jordan
|