mongoid 2.0.2 → 2.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/README.rdoc +3 -1
- data/Rakefile +3 -2
- data/lib/config/locales/bg.yml +6 -0
- data/lib/config/locales/de.yml +6 -0
- data/lib/config/locales/en-GB.yml +48 -0
- data/lib/config/locales/en.yml +6 -3
- data/lib/config/locales/es.yml +6 -0
- data/lib/config/locales/fr.yml +6 -0
- data/lib/config/locales/hi.yml +39 -0
- data/lib/config/locales/hu.yml +13 -7
- data/lib/config/locales/id.yml +3 -0
- data/lib/config/locales/it.yml +7 -1
- data/lib/config/locales/ja.yml +4 -1
- data/lib/config/locales/kr.yml +9 -34
- data/lib/config/locales/nl.yml +6 -0
- data/lib/config/locales/pl.yml +6 -0
- data/lib/config/locales/pt-BR.yml +6 -0
- data/lib/config/locales/pt.yml +6 -0
- data/lib/config/locales/ro.yml +6 -0
- data/lib/config/locales/ru.yml +6 -0
- data/lib/config/locales/sv.yml +6 -0
- data/lib/config/locales/vi.yml +3 -0
- data/lib/config/locales/zh-CN.yml +6 -0
- data/lib/mongoid.rb +51 -45
- data/lib/mongoid/atomic.rb +145 -0
- data/lib/mongoid/atomic/modifiers.rb +109 -0
- data/lib/mongoid/atomic/paths.rb +3 -0
- data/lib/mongoid/atomic/paths/embedded.rb +43 -0
- data/lib/mongoid/atomic/paths/embedded/many.rb +44 -0
- data/lib/mongoid/atomic/paths/embedded/one.rb +43 -0
- data/lib/mongoid/atomic/paths/root.rb +40 -0
- data/lib/mongoid/attributes.rb +12 -23
- data/lib/mongoid/attributes/processing.rb +5 -5
- data/lib/mongoid/callbacks.rb +2 -0
- data/lib/mongoid/collection.rb +12 -59
- data/lib/mongoid/collections.rb +23 -20
- data/lib/mongoid/collections/master.rb +6 -4
- data/lib/mongoid/collections/operations.rb +1 -0
- data/lib/mongoid/collections/retry.rb +7 -0
- data/lib/mongoid/components.rb +2 -2
- data/lib/mongoid/config.rb +42 -55
- data/lib/mongoid/config/database.rb +6 -2
- data/lib/mongoid/config/replset_database.rb +7 -3
- data/lib/mongoid/contexts.rb +9 -3
- data/lib/mongoid/contexts/enumerable.rb +7 -3
- data/lib/mongoid/contexts/mongo.rb +139 -101
- data/lib/mongoid/criteria.rb +86 -69
- data/lib/mongoid/criterion/complex.rb +32 -5
- data/lib/mongoid/criterion/inclusion.rb +4 -2
- data/lib/mongoid/criterion/optional.rb +111 -86
- data/lib/mongoid/criterion/selector.rb +8 -4
- data/lib/mongoid/cursor.rb +27 -27
- data/lib/mongoid/dirty.rb +54 -214
- data/lib/mongoid/document.rb +37 -39
- data/lib/mongoid/errors/document_not_found.rb +3 -4
- data/lib/mongoid/errors/invalid_collection.rb +2 -3
- data/lib/mongoid/errors/invalid_database.rb +2 -3
- data/lib/mongoid/errors/invalid_field.rb +2 -3
- data/lib/mongoid/errors/invalid_options.rb +19 -7
- data/lib/mongoid/errors/invalid_type.rb +2 -3
- data/lib/mongoid/errors/mongoid_error.rb +5 -6
- data/lib/mongoid/errors/too_many_nested_attribute_records.rb +2 -3
- data/lib/mongoid/errors/unsupported_version.rb +2 -3
- data/lib/mongoid/errors/validations.rb +2 -3
- data/lib/mongoid/extensions.rb +8 -62
- data/lib/mongoid/extensions/array/deletion.rb +29 -0
- data/lib/mongoid/extensions/false_class/equality.rb +14 -1
- data/lib/mongoid/extensions/hash/criteria_helpers.rb +21 -10
- data/lib/mongoid/extensions/hash/scoping.rb +14 -1
- data/lib/mongoid/extensions/nil/collectionization.rb +12 -1
- data/lib/mongoid/extensions/object/reflections.rb +33 -2
- data/lib/mongoid/extensions/object_id/conversions.rb +2 -36
- data/lib/mongoid/extensions/proc/scoping.rb +14 -1
- data/lib/mongoid/extensions/string/conversions.rb +4 -16
- data/lib/mongoid/extensions/string/inflections.rb +35 -14
- data/lib/mongoid/extensions/symbol/inflections.rb +38 -12
- data/lib/mongoid/extensions/true_class/equality.rb +14 -1
- data/lib/mongoid/extras.rb +11 -30
- data/lib/mongoid/factory.rb +1 -1
- data/lib/mongoid/fields.rb +121 -29
- data/lib/mongoid/fields/mappings.rb +36 -0
- data/lib/mongoid/fields/serializable.rb +131 -0
- data/lib/mongoid/fields/serializable/array.rb +64 -0
- data/lib/mongoid/fields/serializable/big_decimal.rb +42 -0
- data/lib/mongoid/fields/serializable/bignum.rb +10 -0
- data/lib/mongoid/fields/serializable/binary.rb +11 -0
- data/lib/mongoid/fields/serializable/boolean.rb +44 -0
- data/lib/mongoid/fields/serializable/date.rb +51 -0
- data/lib/mongoid/fields/serializable/date_time.rb +28 -0
- data/lib/mongoid/fields/serializable/fixnum.rb +10 -0
- data/lib/mongoid/fields/serializable/float.rb +33 -0
- data/lib/mongoid/fields/serializable/foreign_keys/array.rb +56 -0
- data/lib/mongoid/fields/serializable/foreign_keys/object.rb +43 -0
- data/lib/mongoid/fields/serializable/hash.rb +25 -0
- data/lib/mongoid/fields/serializable/integer.rb +33 -0
- data/lib/mongoid/fields/serializable/object.rb +11 -0
- data/lib/mongoid/fields/serializable/object_id.rb +32 -0
- data/lib/mongoid/fields/serializable/range.rb +42 -0
- data/lib/mongoid/fields/serializable/set.rb +42 -0
- data/lib/mongoid/fields/serializable/string.rb +28 -0
- data/lib/mongoid/fields/serializable/symbol.rb +28 -0
- data/lib/mongoid/fields/serializable/time.rb +12 -0
- data/lib/mongoid/fields/serializable/time_with_zone.rb +12 -0
- data/lib/mongoid/fields/serializable/timekeeping.rb +102 -0
- data/lib/mongoid/finders.rb +61 -37
- data/lib/mongoid/hierarchy.rb +43 -8
- data/lib/mongoid/identity_map.rb +106 -0
- data/lib/mongoid/indexes.rb +17 -1
- data/lib/mongoid/javascript.rb +2 -3
- data/lib/mongoid/keys.rb +10 -21
- data/lib/mongoid/logger.rb +22 -1
- data/lib/mongoid/matchers/all.rb +10 -0
- data/lib/mongoid/matchers/default.rb +1 -1
- data/lib/mongoid/matchers/exists.rb +10 -0
- data/lib/mongoid/matchers/gt.rb +10 -0
- data/lib/mongoid/matchers/gte.rb +10 -0
- data/lib/mongoid/matchers/in.rb +10 -0
- data/lib/mongoid/matchers/lt.rb +10 -0
- data/lib/mongoid/matchers/lte.rb +10 -0
- data/lib/mongoid/matchers/ne.rb +10 -0
- data/lib/mongoid/matchers/nin.rb +10 -0
- data/lib/mongoid/matchers/or.rb +7 -4
- data/lib/mongoid/matchers/size.rb +10 -0
- data/lib/mongoid/multi_database.rb +26 -6
- data/lib/mongoid/multi_parameter_attributes.rb +40 -17
- data/lib/mongoid/named_scope.rb +1 -2
- data/lib/mongoid/nested_attributes.rb +4 -1
- data/lib/mongoid/observer.rb +108 -5
- data/lib/mongoid/paranoia.rb +26 -26
- data/lib/mongoid/persistence.rb +15 -21
- data/lib/mongoid/persistence/atomic.rb +135 -0
- data/lib/mongoid/persistence/atomic/add_to_set.rb +11 -8
- data/lib/mongoid/persistence/atomic/bit.rb +37 -0
- data/lib/mongoid/persistence/atomic/inc.rb +9 -6
- data/lib/mongoid/persistence/atomic/operation.rb +48 -7
- data/lib/mongoid/persistence/atomic/pop.rb +34 -0
- data/lib/mongoid/persistence/atomic/pull.rb +34 -0
- data/lib/mongoid/persistence/atomic/pull_all.rb +10 -9
- data/lib/mongoid/persistence/atomic/push.rb +8 -5
- data/lib/mongoid/persistence/atomic/push_all.rb +31 -0
- data/lib/mongoid/persistence/atomic/rename.rb +31 -0
- data/lib/mongoid/persistence/atomic/set.rb +30 -0
- data/lib/mongoid/persistence/atomic/unset.rb +28 -0
- data/lib/mongoid/persistence/deletion.rb +32 -0
- data/lib/mongoid/persistence/insertion.rb +41 -0
- data/lib/mongoid/persistence/modification.rb +37 -0
- data/lib/mongoid/persistence/operations.rb +214 -0
- data/lib/mongoid/persistence/operations/embedded/insert.rb +42 -0
- data/lib/mongoid/persistence/operations/embedded/remove.rb +40 -0
- data/lib/mongoid/persistence/operations/insert.rb +34 -0
- data/lib/mongoid/persistence/operations/remove.rb +33 -0
- data/lib/mongoid/persistence/operations/update.rb +53 -0
- data/lib/mongoid/railtie.rb +21 -33
- data/lib/mongoid/railties/database.rake +12 -12
- data/lib/mongoid/relations.rb +9 -5
- data/lib/mongoid/relations/accessors.rb +15 -36
- data/lib/mongoid/relations/auto_save.rb +2 -2
- data/lib/mongoid/relations/binding.rb +28 -1
- data/lib/mongoid/relations/bindings/embedded/in.rb +17 -30
- data/lib/mongoid/relations/bindings/embedded/many.rb +16 -21
- data/lib/mongoid/relations/bindings/embedded/one.rb +11 -16
- data/lib/mongoid/relations/bindings/referenced/in.rb +31 -32
- data/lib/mongoid/relations/bindings/referenced/many.rb +19 -61
- data/lib/mongoid/relations/bindings/referenced/many_to_many.rb +15 -63
- data/lib/mongoid/relations/bindings/referenced/one.rb +18 -26
- data/lib/mongoid/relations/builder.rb +4 -2
- data/lib/mongoid/relations/builders.rb +21 -2
- data/lib/mongoid/relations/builders/embedded/in.rb +5 -1
- data/lib/mongoid/relations/builders/embedded/many.rb +12 -4
- data/lib/mongoid/relations/builders/embedded/one.rb +5 -1
- data/lib/mongoid/relations/builders/nested_attributes/many.rb +2 -2
- data/lib/mongoid/relations/builders/nested_attributes/one.rb +1 -1
- data/lib/mongoid/relations/builders/referenced/in.rb +2 -5
- data/lib/mongoid/relations/builders/referenced/many.rb +2 -3
- data/lib/mongoid/relations/builders/referenced/many_to_many.rb +14 -5
- data/lib/mongoid/relations/builders/referenced/one.rb +2 -3
- data/lib/mongoid/relations/embedded/atomic.rb +2 -2
- data/lib/mongoid/relations/embedded/in.rb +72 -41
- data/lib/mongoid/relations/embedded/many.rb +116 -120
- data/lib/mongoid/relations/embedded/one.rb +59 -41
- data/lib/mongoid/relations/embedded/sort.rb +31 -0
- data/lib/mongoid/relations/macros.rb +28 -24
- data/lib/mongoid/relations/many.rb +10 -103
- data/lib/mongoid/relations/metadata.rb +335 -38
- data/lib/mongoid/relations/one.rb +7 -32
- data/lib/mongoid/relations/options.rb +47 -0
- data/lib/mongoid/relations/proxy.rb +29 -28
- data/lib/mongoid/relations/referenced/batch.rb +2 -3
- data/lib/mongoid/relations/referenced/in.rb +66 -53
- data/lib/mongoid/relations/referenced/many.rb +216 -143
- data/lib/mongoid/relations/referenced/many_to_many.rb +132 -163
- data/lib/mongoid/relations/referenced/one.rb +76 -58
- data/lib/mongoid/relations/synchronization.rb +113 -0
- data/lib/mongoid/relations/targets.rb +2 -0
- data/lib/mongoid/relations/targets/enumerable.rb +329 -0
- data/lib/mongoid/safety.rb +24 -156
- data/lib/mongoid/serialization.rb +21 -0
- data/lib/mongoid/state.rb +34 -0
- data/lib/mongoid/threaded.rb +175 -0
- data/lib/mongoid/timestamps/updated.rb +1 -1
- data/lib/mongoid/validations.rb +3 -7
- data/lib/mongoid/version.rb +1 -1
- data/lib/mongoid/versioning.rb +61 -7
- data/lib/rack/mongoid.rb +2 -0
- data/lib/rack/mongoid/middleware/identity_map.rb +38 -0
- data/lib/rails/generators/mongoid/model/model_generator.rb +1 -1
- data/lib/rails/generators/mongoid/model/templates/{model.rb → model.rb.tt} +0 -0
- data/lib/rails/generators/mongoid/observer/observer_generator.rb +1 -1
- data/lib/rails/generators/mongoid/observer/templates/{observer.rb → observer.rb.tt} +0 -0
- data/lib/rails/mongoid.rb +17 -17
- metadata +136 -102
- data/lib/mongoid/atomicity.rb +0 -111
- data/lib/mongoid/collections/cyclic_iterator.rb +0 -34
- data/lib/mongoid/collections/slaves.rb +0 -61
- data/lib/mongoid/extensions/array/conversions.rb +0 -23
- data/lib/mongoid/extensions/array/parentization.rb +0 -13
- data/lib/mongoid/extensions/big_decimal/conversions.rb +0 -19
- data/lib/mongoid/extensions/binary/conversions.rb +0 -17
- data/lib/mongoid/extensions/boolean/conversions.rb +0 -27
- data/lib/mongoid/extensions/date/conversions.rb +0 -25
- data/lib/mongoid/extensions/datetime/conversions.rb +0 -12
- data/lib/mongoid/extensions/float/conversions.rb +0 -20
- data/lib/mongoid/extensions/hash/conversions.rb +0 -19
- data/lib/mongoid/extensions/integer/conversions.rb +0 -20
- data/lib/mongoid/extensions/object/conversions.rb +0 -25
- data/lib/mongoid/extensions/range/conversions.rb +0 -25
- data/lib/mongoid/extensions/set/conversions.rb +0 -20
- data/lib/mongoid/extensions/symbol/conversions.rb +0 -21
- data/lib/mongoid/extensions/time_conversions.rb +0 -38
- data/lib/mongoid/field.rb +0 -162
- data/lib/mongoid/paths.rb +0 -61
- data/lib/mongoid/persistence/command.rb +0 -71
- data/lib/mongoid/persistence/insert.rb +0 -53
- data/lib/mongoid/persistence/insert_embedded.rb +0 -43
- data/lib/mongoid/persistence/remove.rb +0 -44
- data/lib/mongoid/persistence/remove_all.rb +0 -40
- data/lib/mongoid/persistence/remove_embedded.rb +0 -48
- data/lib/mongoid/persistence/update.rb +0 -77
- data/lib/mongoid/safe.rb +0 -23
- data/lib/mongoid/validations/referenced.rb +0 -58
data/README.rdoc
CHANGED
@@ -11,7 +11,9 @@ Mongoid is an ODM (Object-Document-Mapper) framework for MongoDB in Ruby.
|
|
11
11
|
|
12
12
|
== Compatibility
|
13
13
|
|
14
|
-
Mongoid is
|
14
|
+
Mongoid is tested against Ruby 1.8.7, 1.9.2, 1.9.3, REE, Rubinius, and JRuby.
|
15
|
+
|
16
|
+
http://travis-ci.org/mongoid/mongoid.png?branch=master&.png {Build History}[http://travis-ci.org/mongoid/mongoid]
|
15
17
|
|
16
18
|
= Documentation
|
17
19
|
|
data/Rakefile
CHANGED
@@ -2,7 +2,7 @@ require "bundler"
|
|
2
2
|
Bundler.setup
|
3
3
|
|
4
4
|
require "rake"
|
5
|
-
require "
|
5
|
+
require "rdoc/task"
|
6
6
|
require "rspec"
|
7
7
|
require "rspec/core/rake_task"
|
8
8
|
|
@@ -41,10 +41,11 @@ RSpec::Core::RakeTask.new('spec:progress') do |spec|
|
|
41
41
|
spec.pattern = "spec/**/*_spec.rb"
|
42
42
|
end
|
43
43
|
|
44
|
-
|
44
|
+
RDoc::Task.new do |rdoc|
|
45
45
|
rdoc.rdoc_dir = "rdoc"
|
46
46
|
rdoc.title = "mongoid #{Mongoid::VERSION}"
|
47
47
|
rdoc.rdoc_files.include("README*")
|
48
|
+
rdoc.rdoc_files.include("CHANGELOG*")
|
48
49
|
rdoc.rdoc_files.include("lib/**/*.rb")
|
49
50
|
end
|
50
51
|
|
data/lib/config/locales/bg.yml
CHANGED
@@ -11,6 +11,9 @@ bg:
|
|
11
11
|
invalid_type:
|
12
12
|
Полето е дефинирано като a(n) %{klass}, но се присвоява %{other}
|
13
13
|
със стойност %{value}.
|
14
|
+
invalid_options:
|
15
|
+
"Invalid option :%{invalid} provided to relation :%{name}. Valid options
|
16
|
+
are: %{valid}."
|
14
17
|
unsupported_version:
|
15
18
|
MongoDB %{version} не се подържа, моля ползвайте версия след %{mongo_version}.
|
16
19
|
validations:
|
@@ -39,3 +42,6 @@ bg:
|
|
39
42
|
unsaved_document:
|
40
43
|
You cannot call create or create! through a relational association
|
41
44
|
relation (%{document}) who's parent (%{base}) is not already saved.
|
45
|
+
mixed_relations:
|
46
|
+
Referencing a(n) %{embedded} document from the %{root} document via a
|
47
|
+
relational association is not allowed since the %{embedded} is embedded.
|
data/lib/config/locales/de.yml
CHANGED
@@ -11,6 +11,9 @@ de:
|
|
11
11
|
invalid_type:
|
12
12
|
Feld wurde als a(n) %{klass} definiert, doch der Wert %{value} vom Typ
|
13
13
|
%{other} wurde übergeben.
|
14
|
+
invalid_options:
|
15
|
+
"Invalid option :%{invalid} provided to relation :%{name}. Valid options
|
16
|
+
are: %{valid}."
|
14
17
|
unsupported_version:
|
15
18
|
MongoDB %{version} wird nicht unterstützt, bitte auf Version
|
16
19
|
%{mongo_version} aktualisieren.
|
@@ -39,3 +42,6 @@ de:
|
|
39
42
|
unsaved_document:
|
40
43
|
You cannot call create or create! through a relational association
|
41
44
|
relation (%{document}) who's parent (%{base}) is not already saved.
|
45
|
+
mixed_relations:
|
46
|
+
Referencing a(n) %{embedded} document from the %{root} document via a
|
47
|
+
relational association is not allowed since the %{embedded} is embedded.
|
@@ -0,0 +1,48 @@
|
|
1
|
+
en-GB:
|
2
|
+
mongoid:
|
3
|
+
errors:
|
4
|
+
messages:
|
5
|
+
taken:
|
6
|
+
is already taken
|
7
|
+
document_not_found:
|
8
|
+
Document not found for class %{klass} with id(s) %{identifiers}.
|
9
|
+
invalid_database:
|
10
|
+
"Database should be a Mongo::DB, not %{name}."
|
11
|
+
invalid_options:
|
12
|
+
"Invalid option :%{invalid} provided to relation :%{name}. Valid options
|
13
|
+
are: %{valid}."
|
14
|
+
invalid_type:
|
15
|
+
Field was defined as a(n) %{klass}, but received a %{other} with
|
16
|
+
the value %{value}.
|
17
|
+
unsupported_version:
|
18
|
+
MongoDB %{version} not supported, please upgrade
|
19
|
+
to %{mongo_version}.
|
20
|
+
validations:
|
21
|
+
Validation failed - %{errors}.
|
22
|
+
invalid_collection:
|
23
|
+
Access to the collection for %{klass} is not allowed since it
|
24
|
+
is an embedded document, please access a collection from
|
25
|
+
the root document.
|
26
|
+
invalid_field:
|
27
|
+
Defining a field named %{name} is not allowed. Do not define
|
28
|
+
fields that conflict with Mongoid internal attributes or method
|
29
|
+
names. Use Document#instance_methods to see what names this includes.
|
30
|
+
too_many_nested_attribute_records:
|
31
|
+
Accepting nested attributes for %{association} is limited
|
32
|
+
to %{limit} records.
|
33
|
+
embedded_in_must_have_inverse_of:
|
34
|
+
Options for embedded_in association must include inverse_of.
|
35
|
+
dependent_only_references_one_or_many:
|
36
|
+
The dependent => destroy|delete option that was supplied
|
37
|
+
is only valid on references_one or references_many associations.
|
38
|
+
association_cant_have_inverse_of:
|
39
|
+
Defining an inverse_of on this association is not allowed. Only
|
40
|
+
use this option on embedded_in or references_many as array.
|
41
|
+
calling_document_find_with_nil_is_invalid:
|
42
|
+
Calling Document#find with nil is invalid
|
43
|
+
unsaved_document:
|
44
|
+
"You cannot call create or create! through a relational association
|
45
|
+
relation (%{document}) who's parent (%{base}) is not already saved."
|
46
|
+
mixed_relations:
|
47
|
+
Referencing a(n) %{embedded} document from the %{root} document via a
|
48
|
+
relational association is not allowed since the %{embedded} is embedded.
|
data/lib/config/locales/en.yml
CHANGED
@@ -7,7 +7,10 @@ en:
|
|
7
7
|
document_not_found:
|
8
8
|
Document not found for class %{klass} with id(s) %{identifiers}.
|
9
9
|
invalid_database:
|
10
|
-
Database should be a Mongo::DB, not %{name}.
|
10
|
+
"Database should be a Mongo::DB, not %{name}."
|
11
|
+
invalid_options:
|
12
|
+
"Invalid option :%{invalid} provided to relation :%{name}. Valid options
|
13
|
+
are: %{valid}."
|
11
14
|
invalid_type:
|
12
15
|
Field was defined as a(n) %{klass}, but received a %{other} with
|
13
16
|
the value %{value}.
|
@@ -38,8 +41,8 @@ en:
|
|
38
41
|
calling_document_find_with_nil_is_invalid:
|
39
42
|
Calling Document#find with nil is invalid
|
40
43
|
unsaved_document:
|
41
|
-
You cannot call create or create! through a relational association
|
42
|
-
relation (%{document}) who's parent (%{base}) is not already saved.
|
44
|
+
"You cannot call create or create! through a relational association
|
45
|
+
relation (%{document}) who's parent (%{base}) is not already saved."
|
43
46
|
mixed_relations:
|
44
47
|
Referencing a(n) %{embedded} document from the %{root} document via a
|
45
48
|
relational association is not allowed since the %{embedded} is embedded.
|
data/lib/config/locales/es.yml
CHANGED
@@ -11,6 +11,9 @@ es:
|
|
11
11
|
invalid_type:
|
12
12
|
El campo se definió como %{klass}, pero recibió una instancia de %{other}
|
13
13
|
con el valor %{value}.
|
14
|
+
invalid_options:
|
15
|
+
"Invalid option :%{invalid} provided to relation :%{name}. Valid options
|
16
|
+
are: %{valid}."
|
14
17
|
unsupported_version:
|
15
18
|
MongoDB %{version} no está soportada, por favor actualize a
|
16
19
|
%{mongo_version}.
|
@@ -39,3 +42,6 @@ es:
|
|
39
42
|
unsaved_document:
|
40
43
|
You cannot call create or create! through a relational association
|
41
44
|
relation (%{document}) who's parent (%{base}) is not already saved.
|
45
|
+
mixed_relations:
|
46
|
+
Referencing a(n) %{embedded} document from the %{root} document via a
|
47
|
+
relational association is not allowed since the %{embedded} is embedded.
|
data/lib/config/locales/fr.yml
CHANGED
@@ -11,6 +11,9 @@ fr:
|
|
11
11
|
invalid_type:
|
12
12
|
Le champ a été défini comme un(e) %{klass} mais a reçu un(e)
|
13
13
|
%{other} avec la valeur %{value}.
|
14
|
+
invalid_options:
|
15
|
+
"Invalid option :%{invalid} provided to relation :%{name}. Valid options
|
16
|
+
are: %{valid}."
|
14
17
|
unsupported_version:
|
15
18
|
"MongoDB %{version} n'est pas supporté, veuillez mettre à jour avec
|
16
19
|
%{mongo_version}"
|
@@ -40,3 +43,6 @@ fr:
|
|
40
43
|
unsaved_document:
|
41
44
|
You cannot call create or create! through a relational association
|
42
45
|
relation (%{document}) who's parent (%{base}) is not already saved.
|
46
|
+
mixed_relations:
|
47
|
+
Referencing a(n) %{embedded} document from the %{root} document via a
|
48
|
+
relational association is not allowed since the %{embedded} is embedded.
|
@@ -0,0 +1,39 @@
|
|
1
|
+
en:
|
2
|
+
mongoid:
|
3
|
+
errors:
|
4
|
+
messages:
|
5
|
+
taken:
|
6
|
+
"पहले ही ले लिया है"
|
7
|
+
document_not_found:
|
8
|
+
"%{identifiers} id(s) के साथ, वर्ग %{klass} के लिए दस्तावेज़ नहीं मिला."
|
9
|
+
invalid_database:
|
10
|
+
"डेटाबेस Mongo::DB होना चाहिए, %{name} नहीं."
|
11
|
+
invalid_options:
|
12
|
+
"Invalid option :%{invalid} provided to relation :%{name}. Valid options
|
13
|
+
are: %{valid}."
|
14
|
+
invalid_type:
|
15
|
+
"फील्ड a(n) %{klass} के रूप में परिभाषित किया गया था. लेकिन %{value} मूल्य के साथ एक %{other} प्राप्त किया."
|
16
|
+
unsupported_version:
|
17
|
+
"MongoDB %{version} समर्थित नहीं है, कृपया %{mongo_version} से उन्नयन."
|
18
|
+
validations:
|
19
|
+
"सत्यापन विफल - %{errors}."
|
20
|
+
invalid_collection:
|
21
|
+
"%{klass} के लिए संग्रह करने के लिए प्रवेश के बाद से यह एक एम्बेडेड दस्तावेज़ की अनुमति नहीं है, जड़ दस्तावेज़ से एक संग्रह का उपयोग करें."
|
22
|
+
invalid_field:
|
23
|
+
"एक %{name} के नाम क्षेत्र परिभाषित की अनुमति नहीं है. फ़ील्ड परिभाषित नहीं है कि Mongoid आंतरिक गुण या विधि नाम के साथ संघर्ष. दस्तावेज़ का उपयोग करें.#instance_methods."
|
24
|
+
too_many_nested_attribute_records:
|
25
|
+
"%{assosiation} लिए स्वीकारना नेस्टेड विशेषताएँ %{limit} रिकॉर्ड करने के लिए सीमित है."
|
26
|
+
embedded_in_must_have_inverse_of:
|
27
|
+
"embedded_in संघ के लिए विकल्प inverse_of शामिल करना चाहिए."
|
28
|
+
dependent_only_references_one_or_many:
|
29
|
+
"dependent => destroy|delete विकल्प है कि आपूर्ति की गई थी references_one या references_many संघों पर ही मान्य है."
|
30
|
+
association_cant_have_inverse_of:
|
31
|
+
"इस सहयोग पर एक inverse_of परिभाषित की अनुमति नहीं है.केवल embedded_in या सरणी के रूप में references_many पर इस विकल्प का उपयोग करें."
|
32
|
+
calling_document_find_with_nil_is_invalid:
|
33
|
+
"दस्तावेज़ को बुला रहा है"
|
34
|
+
unsaved_document:
|
35
|
+
"You cannot call create or create! through a relational association
|
36
|
+
relation (%{document}) who's parent (%{base}) is not already saved."
|
37
|
+
mixed_relations:
|
38
|
+
"Referencing a(n) %{embedded} document from the %{root} document via a
|
39
|
+
relational association is not allowed since the %{embedded} is embedded."
|
data/lib/config/locales/hu.yml
CHANGED
@@ -5,28 +5,31 @@ hu:
|
|
5
5
|
taken:
|
6
6
|
már foglalt
|
7
7
|
document_not_found:
|
8
|
-
%{klass} osztályban, %{identifiers} id(k)-el nem található dokumentum.
|
8
|
+
"%{klass} osztályban, %{identifiers} id(k)-el nem található dokumentum."
|
9
9
|
invalid_database:
|
10
10
|
Az adatbázisnak Mongo::DB-nek kellene lennie, nem %{name}.
|
11
11
|
invalid_type:
|
12
12
|
A mező %{klass} -ként volt meghatározva, de a kapott érték %{value}
|
13
13
|
egy %{other}.
|
14
|
+
invalid_options:
|
15
|
+
"Invalid option :%{invalid} provided to relation :%{name}. Valid options
|
16
|
+
are: %{valid}."
|
14
17
|
unsupported_version:
|
15
18
|
MongoDB %{version} nem támogatott, kérjük frissítsen
|
16
19
|
a %{mongo_version} verzióra.
|
17
20
|
validations:
|
18
21
|
Érvénytelen - %{errors}.
|
19
22
|
invalid_collection:
|
20
|
-
%{klass} osztálybeli kollekcióhoz való hozzáférés nem engedélyezett,
|
23
|
+
"%{klass} osztálybeli kollekcióhoz való hozzáférés nem engedélyezett,
|
21
24
|
mivel egy beágyazott dokumentum. A kollekció a gyökér dokumentumból
|
22
|
-
érhető el.
|
25
|
+
érhető el."
|
23
26
|
invalid_field:
|
24
|
-
%{name} mező név nem engedélyezett, mivel a Mongoid által használt
|
27
|
+
"%{name} mező név nem engedélyezett, mivel a Mongoid által használt
|
25
28
|
belső tulajdonság vagy eljárás névvel eggyezik. Használja a
|
26
|
-
Document#instance_methods parancsot ezen nevek lekérdezéséhez.
|
29
|
+
Document#instance_methods parancsot ezen nevek lekérdezéséhez."
|
27
30
|
too_many_nested_attribute_records:
|
28
|
-
%{association} esetében a beágyazott tulajdonságok %{limit} számú
|
29
|
-
bejegyzésre elfogadhatóak.
|
31
|
+
"%{association} esetében a beágyazott tulajdonságok %{limit} számú
|
32
|
+
bejegyzésre elfogadhatóak."
|
30
33
|
embedded_in_must_have_inverse_of:
|
31
34
|
Az embedded_in tipusú kapcsolat esetében kötelező az inverse_of
|
32
35
|
opció használata.
|
@@ -42,3 +45,6 @@ hu:
|
|
42
45
|
unsaved_document:
|
43
46
|
You cannot call create or create! through a relational association
|
44
47
|
relation (%{document}) who's parent (%{base}) is not already saved.
|
48
|
+
mixed_relations:
|
49
|
+
Referencing a(n) %{embedded} document from the %{root} document via a
|
50
|
+
relational association is not allowed since the %{embedded} is embedded.
|
data/lib/config/locales/id.yml
CHANGED
@@ -11,6 +11,9 @@ id:
|
|
11
11
|
invalid_type:
|
12
12
|
Field didefinisikan sebagai %{klass}, tetapi menerima %{other} dengan
|
13
13
|
value %{value}.
|
14
|
+
invalid_options:
|
15
|
+
"Invalid option :%{invalid} provided to relation :%{name}. Valid options
|
16
|
+
are: %{valid}."
|
14
17
|
unsupported_version:
|
15
18
|
MongoDB %{version} tidak di support, silakan upgrade
|
16
19
|
ke %{mongo_version}.
|
data/lib/config/locales/it.yml
CHANGED
@@ -11,8 +11,11 @@ it:
|
|
11
11
|
invalid_type:
|
12
12
|
Il campo è stato definito come %{klass} ma ha ricevuto
|
13
13
|
un %{other} con valore %{value}.
|
14
|
+
invalid_options:
|
15
|
+
"Invalid option :%{invalid} provided to relation :%{name}. Valid options
|
16
|
+
are: %{valid}."
|
14
17
|
unsupported_version:
|
15
|
-
MongoDB %{version}
|
18
|
+
MongoDB %{version} non è supportato, aggiorna a %{mongo_version}.
|
16
19
|
validations:
|
17
20
|
Validazione fallita - %{errors}.
|
18
21
|
invalid_collection:
|
@@ -37,3 +40,6 @@ it:
|
|
37
40
|
unsaved_document:
|
38
41
|
You cannot call create or create! through a relational association
|
39
42
|
relation (%{document}) who's parent (%{base}) is not already saved.
|
43
|
+
mixed_relations:
|
44
|
+
Referencing a(n) %{embedded} document from the %{root} document via a
|
45
|
+
relational association is not allowed since the %{embedded} is embedded.
|
data/lib/config/locales/ja.yml
CHANGED
@@ -10,6 +10,9 @@ ja:
|
|
10
10
|
次のDatabaseは利用できませんでした。%{name}
|
11
11
|
invalid_type:
|
12
12
|
このフィールドは %{klass} で定義されていますが、%{other}に対し %{value} という値が送信されました。
|
13
|
+
invalid_options:
|
14
|
+
"Invalid option :%{invalid} provided to relation :%{name}. Valid options
|
15
|
+
are: %{valid}."
|
13
16
|
unsupported_version:
|
14
17
|
MongoDB %{version} はサポートしていません。 %{mongo_version}にアップグレードをしてください。
|
15
18
|
validations:
|
@@ -37,4 +40,4 @@ ja:
|
|
37
40
|
リレーションを通して create もしくは create! を呼び出すことが出来ませんでした。
|
38
41
|
%{document} の 親ドキュメント (%{base}) は保存されていません。
|
39
42
|
mixed_relations:
|
40
|
-
%{embedded} ドキュメント に対して %{root} ドキュメントからリレーション関係を用いて、参照することはできません。
|
43
|
+
"%{embedded} ドキュメント に対して %{root} ドキュメントからリレーション関係を用いて、参照することはできません。"
|
data/lib/config/locales/kr.yml
CHANGED
@@ -3,63 +3,38 @@ kr:
|
|
3
3
|
errors:
|
4
4
|
messages:
|
5
5
|
taken:
|
6
|
-
이미 사용하고있습니다
|
6
|
+
이미 사용하고있습니다
|
7
7
|
document_not_found:
|
8
8
|
클라스 %{klass}와 id를 %{identifiers} 위한 문서를 찾을수 없습니다.
|
9
|
-
#Document not found for class %{klass} with id(s) %{identifiers}.
|
10
|
-
|
11
9
|
invalid_database:
|
12
10
|
데이타베이스가 Mongo::DB이어야 합니다, %{name}이면 안됩니다.
|
13
|
-
#Database should be a Mongo::DB, not %{name}.
|
14
|
-
|
15
11
|
invalid_type:
|
16
12
|
데이터 필드가 %{klass} 처럼 정의를 내립니다. 하지만 그것은 %{other}를 %{value} 으로 산출되어 받습니다
|
17
|
-
|
18
|
-
|
19
|
-
|
13
|
+
invalid_options:
|
14
|
+
"Invalid option :%{invalid} provided to relation :%{name}. Valid options
|
15
|
+
are: %{valid}."
|
20
16
|
unsupported_version:
|
21
17
|
MongoDB %{version} 를 사용할수 없습니다. %{mongo_version} 으로 업그레이드 시켜주세요.
|
22
|
-
#MongoDB %{version} not supported, please upgrade
|
23
|
-
#to %{mongo_version}.
|
24
|
-
|
25
18
|
validations:
|
26
19
|
확인할수 없습니다 - %{errors}.
|
27
|
-
#Validation failed - %{errors}.
|
28
|
-
|
29
20
|
invalid_collection:
|
30
|
-
%{klass} 를 위한 콜렉션에 접근하는것은 임베디드 문서이게 때문에 허락되지 않습니다. 루트 문서에서 콜렉션을 접근해 주세요
|
31
|
-
#Access to the collection for %{klass} is not allowed since it
|
32
|
-
#is an embedded document, please access a collection from
|
33
|
-
#the root document.
|
34
|
-
|
21
|
+
"%{klass} 를 위한 콜렉션에 접근하는것은 임베디드 문서이게 때문에 허락되지 않습니다. 루트 문서에서 콜렉션을 접근해 주세요"
|
35
22
|
invalid_field:
|
36
23
|
필드의 정의를 %{name}으로 이름짓는것은 허락되지 않습니다.
|
37
24
|
Mongoid 내부의 속성과 메서드이름이 충돌이 되므로 필드의 정의를 내리지 마세요.
|
38
25
|
어떤이름이 포함되는지 보려면 Document#instance_methods를 사용하세요.
|
39
|
-
#Defining a field named %{name} is not allowed. Do not define
|
40
|
-
#fields that conflict with Mongoid internal attributes or method
|
41
|
-
#names. Use Document#instance_methods to see what names this includes.
|
42
|
-
|
43
26
|
too_many_nested_attribute_records:
|
44
|
-
%{association} 을 위한 내부의 속성을 수용하는것은 %{limit}데이터로 제한되어있습니다.
|
45
|
-
#Accepting nested attributes for %{association} is limited
|
46
|
-
#to %{limit} records.
|
47
|
-
|
27
|
+
"%{association} 을 위한 내부의 속성을 수용하는것은 %{limit}데이터로 제한되어있습니다."
|
48
28
|
embedded_in_must_have_inverse_of:
|
49
29
|
embedded_in 관련되는 옵션은 inverse_of 를 포함해야만 합니다.
|
50
|
-
#Options for embedded_in association must include inverse_of.
|
51
|
-
|
52
30
|
dependent_only_references_one_or_many:
|
53
31
|
공급되는 dependent => destroy|delete 옵션은 오직 references_one 또는 references_many 관련되는것에서만 확인 가능합니다.
|
54
|
-
#The dependent => destroy|delete option that was supplied
|
55
|
-
#is only valid on references_one or references_many associations.
|
56
|
-
|
57
32
|
association_cant_have_inverse_of:
|
58
33
|
이관련된것에서 inverse_of 처럼 정의내리는것은 허락되지 않습니다.
|
59
34
|
오직 embedded_in 에있는 옵션 또는 array된 references_many 옵션을 사용하세요
|
60
|
-
#Defining an inverse_of on this association is not allowed. Only
|
61
|
-
#use this option on embedded_in or references_many as array.
|
62
|
-
|
63
35
|
unsaved_document:
|
64
36
|
You cannot call create or create! through a relational association
|
65
37
|
relation (%{document}) who's parent (%{base}) is not already saved.
|
38
|
+
mixed_relations:
|
39
|
+
Referencing a(n) %{embedded} document from the %{root} document via a
|
40
|
+
relational association is not allowed since the %{embedded} is embedded.
|
data/lib/config/locales/nl.yml
CHANGED
@@ -11,6 +11,9 @@ nl:
|
|
11
11
|
invalid_type:
|
12
12
|
Veld was gedefinieerd als een %{klass}, maar ontvangen als %{other} met
|
13
13
|
de waarde %{value}.
|
14
|
+
invalid_options:
|
15
|
+
"Invalid option :%{invalid} provided to relation :%{name}. Valid options
|
16
|
+
are: %{valid}."
|
14
17
|
unsupported_version:
|
15
18
|
MongoDB %{version} wordt niet ondersteund, upgrade naar versie %{mongo_version}.
|
16
19
|
validations:
|
@@ -37,3 +40,6 @@ nl:
|
|
37
40
|
unsaved_document:
|
38
41
|
You cannot call create or create! through a relational association
|
39
42
|
relation (%{document}) who's parent (%{base}) is not already saved.
|
43
|
+
mixed_relations:
|
44
|
+
Referencing a(n) %{embedded} document from the %{root} document via a
|
45
|
+
relational association is not allowed since the %{embedded} is embedded.
|
data/lib/config/locales/pl.yml
CHANGED
@@ -11,6 +11,9 @@ pl:
|
|
11
11
|
invalid_type:
|
12
12
|
Pole zostało zdefiniowane jako %{klass}, ale otrzymano %{other}
|
13
13
|
z wartością %{value}.
|
14
|
+
invalid_options:
|
15
|
+
"Invalid option :%{invalid} provided to relation :%{name}. Valid options
|
16
|
+
are: %{valid}."
|
14
17
|
unsupported_version:
|
15
18
|
MongoDB %{version} nie jest wspierane,
|
16
19
|
zaktualizuj do %{mongo_version}.
|
@@ -37,3 +40,6 @@ pl:
|
|
37
40
|
unsaved_document:
|
38
41
|
You cannot call create or create! through a relational association
|
39
42
|
relation (%{document}) who's parent (%{base}) is not already saved.
|
43
|
+
mixed_relations:
|
44
|
+
Referencing a(n) %{embedded} document from the %{root} document via a
|
45
|
+
relational association is not allowed since the %{embedded} is embedded.
|
@@ -11,6 +11,9 @@ pt-BR:
|
|
11
11
|
invalid_type:
|
12
12
|
O campo foi definido como %{klass}, mas recebeu uma instância de %{other} com
|
13
13
|
o valor %{value}.
|
14
|
+
invalid_options:
|
15
|
+
"Invalid option :%{invalid} provided to relation :%{name}. Valid options
|
16
|
+
are: %{valid}."
|
14
17
|
unsupported_version:
|
15
18
|
MongoDB %{version} não é suportada, por favor atualize para a
|
16
19
|
versão %{mongo_version}.
|
@@ -38,3 +41,6 @@ pt-BR:
|
|
38
41
|
unsaved_document:
|
39
42
|
Você não pode chamar os métodos create ou create! de uma associação
|
40
43
|
relacional (%{document}) cujo pai (%{base}) ainda não foi salvo.
|
44
|
+
mixed_relations:
|
45
|
+
Referencing a(n) %{embedded} document from the %{root} document via a
|
46
|
+
relational association is not allowed since the %{embedded} is embedded.
|
data/lib/config/locales/pt.yml
CHANGED
@@ -11,6 +11,9 @@ pt:
|
|
11
11
|
invalid_type:
|
12
12
|
O campo foi definido como %{klass}, mas recebeu uma instância de %{other} com
|
13
13
|
o valor %{value}.
|
14
|
+
invalid_options:
|
15
|
+
"Invalid option :%{invalid} provided to relation :%{name}. Valid options
|
16
|
+
are: %{valid}."
|
14
17
|
unsupported_version:
|
15
18
|
MongoDB %{version} não é suportada, por favor actualize para a
|
16
19
|
versão %{mongo_version}.
|
@@ -38,3 +41,6 @@ pt:
|
|
38
41
|
unsaved_document:
|
39
42
|
You cannot call create or create! through a relational association
|
40
43
|
relation (%{document}) who's parent (%{base}) is not already saved.
|
44
|
+
mixed_relations:
|
45
|
+
Referencing a(n) %{embedded} document from the %{root} document via a
|
46
|
+
relational association is not allowed since the %{embedded} is embedded.
|