mongoid_nested_fields 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.3
|
@@ -11,7 +11,7 @@ module MongoidNestedFields
|
|
11
11
|
|
12
12
|
set_validations
|
13
13
|
set_field_options(name, options)
|
14
|
-
set_allowed_types_in_field(name, options
|
14
|
+
set_allowed_types_in_field(name, options[:allowed_types])
|
15
15
|
|
16
16
|
define_method("#{name}=") do |value|
|
17
17
|
raise TypeError unless [String, Array].include?(value.class)
|
@@ -201,7 +201,7 @@ class TestMongoidNestedFields < Test::Unit::TestCase
|
|
201
201
|
assert_equal field_options, {
|
202
202
|
:title => {:custom_option => 'custom'},
|
203
203
|
:paragraph => {},
|
204
|
-
:test_hash => {:nested => true}
|
204
|
+
:test_hash => {:nested => true, :allowed_types => [Hash]}
|
205
205
|
}
|
206
206
|
end
|
207
207
|
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 1
|
8
|
-
-
|
9
|
-
version: 0.1.
|
8
|
+
- 3
|
9
|
+
version: 0.1.3
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- retro
|
@@ -218,7 +218,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
218
218
|
requirements:
|
219
219
|
- - ">="
|
220
220
|
- !ruby/object:Gem::Version
|
221
|
-
hash:
|
221
|
+
hash: 1384202810899061606
|
222
222
|
segments:
|
223
223
|
- 0
|
224
224
|
version: "0"
|