stonegao-mongoid 2.0.0.rc.6
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.
- data/LICENSE +20 -0
- data/README.rdoc +50 -0
- data/Rakefile +51 -0
- data/lib/config/locales/bg.yml +44 -0
- data/lib/config/locales/de.yml +44 -0
- data/lib/config/locales/en.yml +45 -0
- data/lib/config/locales/es.yml +44 -0
- data/lib/config/locales/fr.yml +45 -0
- data/lib/config/locales/hu.yml +47 -0
- data/lib/config/locales/it.yml +42 -0
- data/lib/config/locales/kr.yml +68 -0
- data/lib/config/locales/nl.yml +42 -0
- data/lib/config/locales/pl.yml +42 -0
- data/lib/config/locales/pt-br.yml +43 -0
- data/lib/config/locales/pt.yml +43 -0
- data/lib/config/locales/ro.yml +49 -0
- data/lib/config/locales/sv.yml +43 -0
- data/lib/config/locales/zh-CN.yml +34 -0
- data/lib/mongoid/atomicity.rb +111 -0
- data/lib/mongoid/attributes.rb +251 -0
- data/lib/mongoid/callbacks.rb +13 -0
- data/lib/mongoid/collection.rb +137 -0
- data/lib/mongoid/collections/cyclic_iterator.rb +34 -0
- data/lib/mongoid/collections/master.rb +29 -0
- data/lib/mongoid/collections/operations.rb +42 -0
- data/lib/mongoid/collections/slaves.rb +45 -0
- data/lib/mongoid/collections.rb +70 -0
- data/lib/mongoid/components.rb +45 -0
- data/lib/mongoid/config/database.rb +167 -0
- data/lib/mongoid/config/replset_database.rb +48 -0
- data/lib/mongoid/config.rb +343 -0
- data/lib/mongoid/contexts/enumerable/sort.rb +43 -0
- data/lib/mongoid/contexts/enumerable.rb +226 -0
- data/lib/mongoid/contexts/ids.rb +25 -0
- data/lib/mongoid/contexts/mongo.rb +345 -0
- data/lib/mongoid/contexts/paging.rb +50 -0
- data/lib/mongoid/contexts.rb +21 -0
- data/lib/mongoid/copyable.rb +44 -0
- data/lib/mongoid/criteria.rb +325 -0
- data/lib/mongoid/criterion/complex.rb +34 -0
- data/lib/mongoid/criterion/creational.rb +34 -0
- data/lib/mongoid/criterion/exclusion.rb +67 -0
- data/lib/mongoid/criterion/inclusion.rb +134 -0
- data/lib/mongoid/criterion/inspection.rb +20 -0
- data/lib/mongoid/criterion/optional.rb +213 -0
- data/lib/mongoid/criterion/selector.rb +74 -0
- data/lib/mongoid/cursor.rb +81 -0
- data/lib/mongoid/default_scope.rb +28 -0
- data/lib/mongoid/dirty.rb +251 -0
- data/lib/mongoid/document.rb +256 -0
- data/lib/mongoid/errors/document_not_found.rb +29 -0
- data/lib/mongoid/errors/invalid_collection.rb +19 -0
- data/lib/mongoid/errors/invalid_database.rb +20 -0
- data/lib/mongoid/errors/invalid_field.rb +19 -0
- data/lib/mongoid/errors/invalid_options.rb +16 -0
- data/lib/mongoid/errors/invalid_type.rb +26 -0
- data/lib/mongoid/errors/mongoid_error.rb +27 -0
- data/lib/mongoid/errors/too_many_nested_attribute_records.rb +21 -0
- data/lib/mongoid/errors/unsaved_document.rb +23 -0
- data/lib/mongoid/errors/unsupported_version.rb +21 -0
- data/lib/mongoid/errors/validations.rb +24 -0
- data/lib/mongoid/errors.rb +12 -0
- data/lib/mongoid/extensions/array/conversions.rb +23 -0
- data/lib/mongoid/extensions/array/parentization.rb +13 -0
- data/lib/mongoid/extensions/big_decimal/conversions.rb +19 -0
- data/lib/mongoid/extensions/binary/conversions.rb +17 -0
- data/lib/mongoid/extensions/boolean/conversions.rb +27 -0
- data/lib/mongoid/extensions/date/conversions.rb +25 -0
- data/lib/mongoid/extensions/datetime/conversions.rb +12 -0
- data/lib/mongoid/extensions/false_class/equality.rb +13 -0
- data/lib/mongoid/extensions/float/conversions.rb +20 -0
- data/lib/mongoid/extensions/hash/conversions.rb +19 -0
- data/lib/mongoid/extensions/hash/criteria_helpers.rb +22 -0
- data/lib/mongoid/extensions/hash/scoping.rb +12 -0
- data/lib/mongoid/extensions/integer/conversions.rb +20 -0
- data/lib/mongoid/extensions/nil/collectionization.rb +12 -0
- data/lib/mongoid/extensions/object/conversions.rb +25 -0
- data/lib/mongoid/extensions/object/reflections.rb +17 -0
- data/lib/mongoid/extensions/object/yoda.rb +27 -0
- data/lib/mongoid/extensions/object_id/conversions.rb +57 -0
- data/lib/mongoid/extensions/proc/scoping.rb +12 -0
- data/lib/mongoid/extensions/set/conversions.rb +20 -0
- data/lib/mongoid/extensions/string/conversions.rb +34 -0
- data/lib/mongoid/extensions/string/inflections.rb +97 -0
- data/lib/mongoid/extensions/symbol/conversions.rb +21 -0
- data/lib/mongoid/extensions/symbol/inflections.rb +40 -0
- data/lib/mongoid/extensions/time_conversions.rb +38 -0
- data/lib/mongoid/extensions/true_class/equality.rb +13 -0
- data/lib/mongoid/extensions.rb +116 -0
- data/lib/mongoid/extras.rb +61 -0
- data/lib/mongoid/factory.rb +20 -0
- data/lib/mongoid/field.rb +95 -0
- data/lib/mongoid/fields.rb +138 -0
- data/lib/mongoid/finders.rb +173 -0
- data/lib/mongoid/hierarchy.rb +85 -0
- data/lib/mongoid/identity.rb +89 -0
- data/lib/mongoid/indexes.rb +38 -0
- data/lib/mongoid/inspection.rb +58 -0
- data/lib/mongoid/javascript/functions.yml +37 -0
- data/lib/mongoid/javascript.rb +21 -0
- data/lib/mongoid/json.rb +16 -0
- data/lib/mongoid/keys.rb +77 -0
- data/lib/mongoid/logger.rb +18 -0
- data/lib/mongoid/matchers/all.rb +11 -0
- data/lib/mongoid/matchers/default.rb +27 -0
- data/lib/mongoid/matchers/exists.rb +13 -0
- data/lib/mongoid/matchers/gt.rb +11 -0
- data/lib/mongoid/matchers/gte.rb +11 -0
- data/lib/mongoid/matchers/in.rb +11 -0
- data/lib/mongoid/matchers/lt.rb +11 -0
- data/lib/mongoid/matchers/lte.rb +11 -0
- data/lib/mongoid/matchers/ne.rb +11 -0
- data/lib/mongoid/matchers/nin.rb +11 -0
- data/lib/mongoid/matchers/size.rb +11 -0
- data/lib/mongoid/matchers.rb +55 -0
- data/lib/mongoid/modifiers/command.rb +18 -0
- data/lib/mongoid/modifiers/inc.rb +24 -0
- data/lib/mongoid/modifiers.rb +24 -0
- data/lib/mongoid/multi_database.rb +11 -0
- data/lib/mongoid/multi_parameter_attributes.rb +80 -0
- data/lib/mongoid/named_scope.rb +36 -0
- data/lib/mongoid/nested_attributes.rb +43 -0
- data/lib/mongoid/paranoia.rb +103 -0
- data/lib/mongoid/paths.rb +61 -0
- data/lib/mongoid/persistence/command.rb +59 -0
- data/lib/mongoid/persistence/insert.rb +53 -0
- data/lib/mongoid/persistence/insert_embedded.rb +42 -0
- data/lib/mongoid/persistence/remove.rb +44 -0
- data/lib/mongoid/persistence/remove_all.rb +40 -0
- data/lib/mongoid/persistence/remove_embedded.rb +48 -0
- data/lib/mongoid/persistence/update.rb +76 -0
- data/lib/mongoid/persistence.rb +237 -0
- data/lib/mongoid/railtie.rb +129 -0
- data/lib/mongoid/railties/database.rake +171 -0
- data/lib/mongoid/railties/document.rb +12 -0
- data/lib/mongoid/relations/accessors.rb +157 -0
- data/lib/mongoid/relations/auto_save.rb +34 -0
- data/lib/mongoid/relations/binding.rb +26 -0
- data/lib/mongoid/relations/bindings/embedded/in.rb +82 -0
- data/lib/mongoid/relations/bindings/embedded/many.rb +98 -0
- data/lib/mongoid/relations/bindings/embedded/one.rb +66 -0
- data/lib/mongoid/relations/bindings/referenced/in.rb +74 -0
- data/lib/mongoid/relations/bindings/referenced/many.rb +96 -0
- data/lib/mongoid/relations/bindings/referenced/many_to_many.rb +99 -0
- data/lib/mongoid/relations/bindings/referenced/one.rb +66 -0
- data/lib/mongoid/relations/bindings.rb +9 -0
- data/lib/mongoid/relations/builder.rb +42 -0
- data/lib/mongoid/relations/builders/embedded/in.rb +25 -0
- data/lib/mongoid/relations/builders/embedded/many.rb +32 -0
- data/lib/mongoid/relations/builders/embedded/one.rb +26 -0
- data/lib/mongoid/relations/builders/nested_attributes/many.rb +116 -0
- data/lib/mongoid/relations/builders/nested_attributes/one.rb +135 -0
- data/lib/mongoid/relations/builders/referenced/in.rb +32 -0
- data/lib/mongoid/relations/builders/referenced/many.rb +26 -0
- data/lib/mongoid/relations/builders/referenced/many_to_many.rb +29 -0
- data/lib/mongoid/relations/builders/referenced/one.rb +30 -0
- data/lib/mongoid/relations/builders.rb +79 -0
- data/lib/mongoid/relations/cascading/delete.rb +19 -0
- data/lib/mongoid/relations/cascading/destroy.rb +19 -0
- data/lib/mongoid/relations/cascading/nullify.rb +18 -0
- data/lib/mongoid/relations/cascading/strategy.rb +26 -0
- data/lib/mongoid/relations/cascading.rb +55 -0
- data/lib/mongoid/relations/constraint.rb +45 -0
- data/lib/mongoid/relations/cyclic.rb +97 -0
- data/lib/mongoid/relations/embedded/in.rb +173 -0
- data/lib/mongoid/relations/embedded/many.rb +483 -0
- data/lib/mongoid/relations/embedded/one.rb +170 -0
- data/lib/mongoid/relations/macros.rb +306 -0
- data/lib/mongoid/relations/many.rb +171 -0
- data/lib/mongoid/relations/metadata.rb +533 -0
- data/lib/mongoid/relations/nested_builder.rb +68 -0
- data/lib/mongoid/relations/one.rb +47 -0
- data/lib/mongoid/relations/polymorphic.rb +54 -0
- data/lib/mongoid/relations/proxy.rb +128 -0
- data/lib/mongoid/relations/referenced/in.rb +216 -0
- data/lib/mongoid/relations/referenced/many.rb +443 -0
- data/lib/mongoid/relations/referenced/many_to_many.rb +344 -0
- data/lib/mongoid/relations/referenced/one.rb +206 -0
- data/lib/mongoid/relations/reflections.rb +45 -0
- data/lib/mongoid/relations.rb +105 -0
- data/lib/mongoid/safe.rb +23 -0
- data/lib/mongoid/safety.rb +207 -0
- data/lib/mongoid/scope.rb +31 -0
- data/lib/mongoid/serialization.rb +99 -0
- data/lib/mongoid/state.rb +66 -0
- data/lib/mongoid/timestamps.rb +38 -0
- data/lib/mongoid/validations/associated.rb +42 -0
- data/lib/mongoid/validations/uniqueness.rb +85 -0
- data/lib/mongoid/validations.rb +117 -0
- data/lib/mongoid/version.rb +4 -0
- data/lib/mongoid/versioning.rb +51 -0
- data/lib/mongoid.rb +139 -0
- data/lib/rails/generators/mongoid/config/config_generator.rb +25 -0
- data/lib/rails/generators/mongoid/config/templates/mongoid.yml +23 -0
- data/lib/rails/generators/mongoid/model/model_generator.rb +24 -0
- data/lib/rails/generators/mongoid/model/templates/model.rb +17 -0
- data/lib/rails/generators/mongoid_generator.rb +61 -0
- data/lib/rails/mongoid.rb +57 -0
- metadata +380 -0
data/LICENSE
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
Copyright (c) 2009 Durran Jordan
|
|
2
|
+
|
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
|
4
|
+
a copy of this software and associated documentation files (the
|
|
5
|
+
"Software"), to deal in the Software without restriction, including
|
|
6
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
|
7
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
|
8
|
+
permit persons to whom the Software is furnished to do so, subject to
|
|
9
|
+
the following conditions:
|
|
10
|
+
|
|
11
|
+
The above copyright notice and this permission notice shall be
|
|
12
|
+
included in all copies or substantial portions of the Software.
|
|
13
|
+
|
|
14
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
15
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
16
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
17
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
|
18
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
|
19
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
|
20
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.rdoc
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
= Overview
|
|
2
|
+
|
|
3
|
+
== About Mongoid
|
|
4
|
+
|
|
5
|
+
Mongoid is an ODM (Object-Document-Mapper) framework for MongoDB in Ruby.
|
|
6
|
+
|
|
7
|
+
== Project Tracking
|
|
8
|
+
|
|
9
|
+
* {Mongoid Google Group}[http://groups.google.com/group/mongoid]
|
|
10
|
+
* {Mongoid Website and Documentation}[http://mongoid.org]
|
|
11
|
+
|
|
12
|
+
== Compatibility
|
|
13
|
+
|
|
14
|
+
Mongoid is developed against Ruby 1.8.7, 1.9.2, and REE.
|
|
15
|
+
|
|
16
|
+
= Documentation
|
|
17
|
+
|
|
18
|
+
Please see the new Mongoid website for up-to-date documentation:
|
|
19
|
+
{mongoid.org}[http://mongoid.org]
|
|
20
|
+
|
|
21
|
+
= Donating
|
|
22
|
+
* {Support Mongoid at Pledgie}[http://www.pledgie.com/campaigns/7757]
|
|
23
|
+
|
|
24
|
+
= License
|
|
25
|
+
|
|
26
|
+
Copyright (c) 2009, 2010, 2011 Durran Jordan
|
|
27
|
+
|
|
28
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
|
29
|
+
a copy of this software and associated documentation files (the
|
|
30
|
+
"Software"), to deal in the Software without restriction, including
|
|
31
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
|
32
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
|
33
|
+
permit persons to whom the Software is furnished to do so, subject to
|
|
34
|
+
the following conditions:
|
|
35
|
+
|
|
36
|
+
The above copyright notice and this permission notice shall be
|
|
37
|
+
included in all copies or substantial portions of the Software.
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
41
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
42
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
43
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
|
44
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
|
45
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
|
46
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
47
|
+
|
|
48
|
+
= Credits
|
|
49
|
+
|
|
50
|
+
Durran Jordan: durran at gmail dot com
|
data/Rakefile
ADDED
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
require "bundler"
|
|
2
|
+
Bundler.setup
|
|
3
|
+
|
|
4
|
+
require "rake"
|
|
5
|
+
require "rake/rdoctask"
|
|
6
|
+
require "rspec"
|
|
7
|
+
require "rspec/core/rake_task"
|
|
8
|
+
|
|
9
|
+
$LOAD_PATH.unshift File.expand_path("../lib", __FILE__)
|
|
10
|
+
require "mongoid/version"
|
|
11
|
+
|
|
12
|
+
task :gem => :build
|
|
13
|
+
task :build do
|
|
14
|
+
system "gem build mongoid.gemspec"
|
|
15
|
+
end
|
|
16
|
+
|
|
17
|
+
task :install => :build do
|
|
18
|
+
system "sudo gem install mongoid-#{Mongoid::VERSION}.gem"
|
|
19
|
+
end
|
|
20
|
+
|
|
21
|
+
task :release => :build do
|
|
22
|
+
system "git tag -a #{Mongoid::VERSION} -m 'Tagging #{Mongoid::VERSION}'"
|
|
23
|
+
system "git push --tags"
|
|
24
|
+
system "gem push mongoid-#{Mongoid::VERSION}.gem"
|
|
25
|
+
end
|
|
26
|
+
|
|
27
|
+
Rspec::Core::RakeTask.new(:spec) do |spec|
|
|
28
|
+
spec.pattern = "spec/**/*_spec.rb"
|
|
29
|
+
end
|
|
30
|
+
|
|
31
|
+
Rspec::Core::RakeTask.new("spec:unit") do |spec|
|
|
32
|
+
spec.pattern = "spec/unit/**/*_spec.rb"
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
Rspec::Core::RakeTask.new("spec:integration") do |spec|
|
|
36
|
+
spec.pattern = "spec/integration/**/*_spec.rb"
|
|
37
|
+
end
|
|
38
|
+
|
|
39
|
+
Rspec::Core::RakeTask.new('spec:progress') do |spec|
|
|
40
|
+
spec.rspec_opts = %w(--format progress)
|
|
41
|
+
spec.pattern = "spec/**/*_spec.rb"
|
|
42
|
+
end
|
|
43
|
+
|
|
44
|
+
Rake::RDocTask.new do |rdoc|
|
|
45
|
+
rdoc.rdoc_dir = "rdoc"
|
|
46
|
+
rdoc.title = "mongoid #{Mongoid::VERSION}"
|
|
47
|
+
rdoc.rdoc_files.include("README*")
|
|
48
|
+
rdoc.rdoc_files.include("lib/**/*.rb")
|
|
49
|
+
end
|
|
50
|
+
|
|
51
|
+
task :default => :spec
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
bg:
|
|
2
|
+
activemodel:
|
|
3
|
+
errors:
|
|
4
|
+
messages:
|
|
5
|
+
taken: е вече заето
|
|
6
|
+
|
|
7
|
+
mongoid:
|
|
8
|
+
errors:
|
|
9
|
+
messages:
|
|
10
|
+
document_not_found:
|
|
11
|
+
Не е намерен документ %{klass} с id(та) %{identifiers}.
|
|
12
|
+
invalid_database:
|
|
13
|
+
Базата данни трябва да е от тип Mnogo:DB, а не %{name}.
|
|
14
|
+
invalid_type:
|
|
15
|
+
Полето е дефинирано като a(n) %{klass}, но се присвоява %{other}
|
|
16
|
+
със стойност %{value}.
|
|
17
|
+
unsupported_version:
|
|
18
|
+
MongoDB %{version} не се подържа, моля ползвайте версия след %{mongo_version}.
|
|
19
|
+
validations:
|
|
20
|
+
Неуспешна валидация - %{errors} грешки.
|
|
21
|
+
invalid_collection:
|
|
22
|
+
Достъпа до колекцията за %{klass} не е разрешена, тъй като
|
|
23
|
+
тя е вложен документ, можете да я достъпите през главният документ
|
|
24
|
+
invalid_field:
|
|
25
|
+
Дефинирането на поле с име %{name} не е разрешено. Не дефинирайте
|
|
26
|
+
полета, които са в конфликт с Mongoid вътрешните атрибути.
|
|
27
|
+
Можете да ги видите с Document#instance_methods
|
|
28
|
+
too_many_nested_attribute_records:
|
|
29
|
+
Присвояването на вложини атрибути за %{association} е
|
|
30
|
+
ограничено до %{limit} записа
|
|
31
|
+
embedded_in_must_have_inverse_of:
|
|
32
|
+
Опциите на embedded_in асоциацията трябва да съдържат invers_of.
|
|
33
|
+
dependent_only_references_one_or_many:
|
|
34
|
+
Опцията dependent => destroy|delete, която е посочена е
|
|
35
|
+
валидна само за references_one или references_many връзки
|
|
36
|
+
association_cant_have_inverse_of:
|
|
37
|
+
Дефинирането на inverse_of за тази асоциация не е позволено.
|
|
38
|
+
Използвайте тази опция само за embedded_in или
|
|
39
|
+
references_many като масив.
|
|
40
|
+
calling_document_find_with_nil_is_invalid:
|
|
41
|
+
Извикването на Document#find със nil е невалидно
|
|
42
|
+
unsaved_document:
|
|
43
|
+
You cannot call create or create! through a relational association
|
|
44
|
+
relation (%{document}) who's parent (%{base}) is not already saved.
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
de:
|
|
2
|
+
activemodel:
|
|
3
|
+
errors:
|
|
4
|
+
messages:
|
|
5
|
+
taken: ist bereits vergeben
|
|
6
|
+
|
|
7
|
+
mongoid:
|
|
8
|
+
errors:
|
|
9
|
+
messages:
|
|
10
|
+
document_not_found:
|
|
11
|
+
Dokument für Klasse %{klass} mit ID(s) %{identifiers} nicht gefunden.
|
|
12
|
+
invalid_database:
|
|
13
|
+
Datenbank sollte eine Mongo::DB sein, nicht %{name}.
|
|
14
|
+
invalid_type:
|
|
15
|
+
Feld wurde als a(n) %{klass} definiert, doch der Wert %{value} vom Typ
|
|
16
|
+
%{other} wurde übergeben.
|
|
17
|
+
unsupported_version:
|
|
18
|
+
MongoDB %{version} wird nicht unterstützt, bitte auf Version
|
|
19
|
+
%{mongo_version} aktualisieren.
|
|
20
|
+
validations:
|
|
21
|
+
Validierung fehlgeschlagen - %{errors}.
|
|
22
|
+
invalid_collection:
|
|
23
|
+
Zugriff auf die Collection von %{klass} ist nicht erlaubt,
|
|
24
|
+
da es sich um ein eingebettetes Dokument handelt. Auf die Collection
|
|
25
|
+
kann vom Wurzeldokument aus zugegriffen werden.
|
|
26
|
+
invalid_field:
|
|
27
|
+
Das Feld %{name} kann nicht definiert werden, da sein Name mit
|
|
28
|
+
einem internen Mongoid-Attribut oder Methodennamen kollidiert.
|
|
29
|
+
Siehe Document#instance_methods für eine Auflistung dieser Namen.
|
|
30
|
+
too_many_nested_attribute_records:
|
|
31
|
+
Verschachtelte Attribute für %{association} sind auf %{limit} Einträge
|
|
32
|
+
beschränkt.
|
|
33
|
+
embedded_in_must_have_inverse_of:
|
|
34
|
+
Die Optionen für eine embedded_in-Beziehung müssen inverse_of beinhalten.
|
|
35
|
+
dependent_only_references_one_or_many:
|
|
36
|
+
Die dependent => destroy|delete-Option ist nur für
|
|
37
|
+
references_one oder references_many-Beziehungen gültig.
|
|
38
|
+
association_cant_have_inverse_of:
|
|
39
|
+
Es ist nicht erlaubt, inverse_of für diese Beziehung zu definieren.
|
|
40
|
+
Diese Option kann nur für embedded_in oder references_many als Array
|
|
41
|
+
verwendet werden.
|
|
42
|
+
unsaved_document:
|
|
43
|
+
You cannot call create or create! through a relational association
|
|
44
|
+
relation (%{document}) who's parent (%{base}) is not already saved.
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
en:
|
|
2
|
+
activemodel:
|
|
3
|
+
errors:
|
|
4
|
+
messages:
|
|
5
|
+
taken: is already taken
|
|
6
|
+
|
|
7
|
+
mongoid:
|
|
8
|
+
errors:
|
|
9
|
+
messages:
|
|
10
|
+
document_not_found:
|
|
11
|
+
Document not found for class %{klass} with id(s) %{identifiers}.
|
|
12
|
+
invalid_database:
|
|
13
|
+
Database should be a Mongo::DB, not %{name}.
|
|
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.
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
es:
|
|
2
|
+
activemodel:
|
|
3
|
+
errors:
|
|
4
|
+
messages:
|
|
5
|
+
taken: ya está en uso
|
|
6
|
+
|
|
7
|
+
mongoid:
|
|
8
|
+
errors:
|
|
9
|
+
messages:
|
|
10
|
+
document_not_found:
|
|
11
|
+
No se encontró ningún documento para la clase %{klass} con los id(s) %{identifiers}.
|
|
12
|
+
invalid_database:
|
|
13
|
+
La base de datos debería ser una instancia de Mongo::DB, en lugar de %{name}.
|
|
14
|
+
invalid_type:
|
|
15
|
+
El campo se definió como %{klass}, pero recibió una instancia de %{other}
|
|
16
|
+
con el valor %{value}.
|
|
17
|
+
unsupported_version:
|
|
18
|
+
MongoDB %{version} no está soportada, por favor actualize a
|
|
19
|
+
%{mongo_version}.
|
|
20
|
+
validations:
|
|
21
|
+
La validación falló - %{errors}.
|
|
22
|
+
invalid_collection:
|
|
23
|
+
El acceso a la colección %{klass} no está permitido, ya que
|
|
24
|
+
es un documento incrustado, por favor acceda a la colección
|
|
25
|
+
desde el documento raíz.
|
|
26
|
+
invalid_field:
|
|
27
|
+
No está permitido definir un campo con el nombre %{name}. No
|
|
28
|
+
defina campos que entren en conflicto con los atributos internos o
|
|
29
|
+
nombres de métodos de Mongoid. Utilice Document#instance_methods para
|
|
30
|
+
consultar los nombres ya incluidos.
|
|
31
|
+
too_many_nested_attribute_records:
|
|
32
|
+
La aceptación de atributos anidados para %{association} está limitada
|
|
33
|
+
a %{limit} registros.
|
|
34
|
+
embedded_in_must_have_inverse_of:
|
|
35
|
+
Las opciones de una asociación embedded_in deben incluir inverse_of.
|
|
36
|
+
dependent_only_references_one_or_many:
|
|
37
|
+
La opción dependent => destroy|delete proporcionada
|
|
38
|
+
sólo es válida en asociaciones references_one o references_many.
|
|
39
|
+
association_cant_have_inverse_of:
|
|
40
|
+
No está permitido definir inverse_of en esta asociación. Utilice
|
|
41
|
+
esta opción sólo en embedded_in o en references_many as array.
|
|
42
|
+
unsaved_document:
|
|
43
|
+
You cannot call create or create! through a relational association
|
|
44
|
+
relation (%{document}) who's parent (%{base}) is not already saved.
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
fr:
|
|
2
|
+
activemodel:
|
|
3
|
+
errors:
|
|
4
|
+
messages:
|
|
5
|
+
taken: est déjà pris.
|
|
6
|
+
|
|
7
|
+
mongoid:
|
|
8
|
+
errors:
|
|
9
|
+
messages:
|
|
10
|
+
document_not_found:
|
|
11
|
+
Document introuvable pour la classe %{klass} avec les ids %{identifiers}.
|
|
12
|
+
invalid_database:
|
|
13
|
+
La base de données doit être une Mongo::DB, pas %{name}.
|
|
14
|
+
invalid_type:
|
|
15
|
+
Le champ a été défini comme un(e) %{klass} mais a reçu un(e)
|
|
16
|
+
%{other} avec la valeur %{value}.
|
|
17
|
+
unsupported_version:
|
|
18
|
+
"MongoDB %{version} n'est pas supporté, veuillez mettre à jour avec
|
|
19
|
+
%{mongo_version}"
|
|
20
|
+
validations:
|
|
21
|
+
La validation a échouée - %{errors}.
|
|
22
|
+
invalid_collection:
|
|
23
|
+
"L'accès à la collection pour %{klass} n'est pas autorisé puisque
|
|
24
|
+
ce n'est pas un document embarqué, veuillez accéder à la collection
|
|
25
|
+
depuis le document racine."
|
|
26
|
+
invalid_field:
|
|
27
|
+
"Définir un champ appellé %{name} n'est pas autorisé. Veuillez ne
|
|
28
|
+
pas définir de champs en conflit avec les attributs internes de
|
|
29
|
+
Mongoid ou des noms de méthodes. Utilisez Document#instance_methods
|
|
30
|
+
pour consulter la liste des noms."
|
|
31
|
+
too_many_nested_attribute_records:
|
|
32
|
+
"Le nombre d'attributs imbriqués pour %{association} est limité à
|
|
33
|
+
%{limit} enregistrements."
|
|
34
|
+
embedded_in_must_have_inverse_of:
|
|
35
|
+
Les options pour les associations embedded_in doivent inclure
|
|
36
|
+
inverse_of.
|
|
37
|
+
dependent_only_references_one_or_many:
|
|
38
|
+
"L'option dependent => destroy|delete fournie est seulement valide
|
|
39
|
+
pour les associations references_on ou references_many."
|
|
40
|
+
association_cant_have_inverse_of:
|
|
41
|
+
"Definir un inverse_of pour cette association n'est pas autorisé.
|
|
42
|
+
Utilisez cette option seulement sur embedded_in ou references_many."
|
|
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.
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
hu:
|
|
2
|
+
activemodel:
|
|
3
|
+
errors:
|
|
4
|
+
messages:
|
|
5
|
+
taken: már foglalt
|
|
6
|
+
|
|
7
|
+
mongoid:
|
|
8
|
+
errors:
|
|
9
|
+
messages:
|
|
10
|
+
document_not_found:
|
|
11
|
+
%{klass} osztályban, %{identifiers} id(k)-el nem található dokumentum.
|
|
12
|
+
invalid_database:
|
|
13
|
+
Az adatbázisnak Mongo::DB-nek kellene lennie, nem %{name}.
|
|
14
|
+
invalid_type:
|
|
15
|
+
A mező %{klass} -ként volt meghatározva, de a kapott érték %{value}
|
|
16
|
+
egy %{other}.
|
|
17
|
+
unsupported_version:
|
|
18
|
+
MongoDB %{version} nem támogatott, kérjük frissítsen
|
|
19
|
+
a %{mongo_version} verzióra.
|
|
20
|
+
validations:
|
|
21
|
+
Érvénytelen - %{errors}.
|
|
22
|
+
invalid_collection:
|
|
23
|
+
%{klass} osztálybeli kollekcióhoz való hozzáférés nem engedélyezett,
|
|
24
|
+
mivel egy beágyazott dokumentum. A kollekció a gyökér dokumentumból
|
|
25
|
+
érhető el.
|
|
26
|
+
invalid_field:
|
|
27
|
+
%{name} mező név nem engedélyezett, mivel a Mongoid által használt
|
|
28
|
+
belső tulajdonság vagy eljárás névvel eggyezik. Használja a
|
|
29
|
+
Document#instance_methods parancsot ezen nevek lekérdezéséhez.
|
|
30
|
+
too_many_nested_attribute_records:
|
|
31
|
+
%{association} esetében a beágyazott tulajdonságok %{limit} számú
|
|
32
|
+
bejegyzésre elfogadhatóak.
|
|
33
|
+
embedded_in_must_have_inverse_of:
|
|
34
|
+
Az embedded_in tipusú kapcsolat esetében kötelező az inverse_of
|
|
35
|
+
opció használata.
|
|
36
|
+
dependent_only_references_one_or_many:
|
|
37
|
+
A dependent => destroy|delete opció csak a references_one vagy
|
|
38
|
+
references_many kapcsolatok esetében érvényes.
|
|
39
|
+
association_cant_have_inverse_of:
|
|
40
|
+
Ezen a tipusú kapcsolaton az inverse_of opció érvénytelen, csak
|
|
41
|
+
az embedded_in vagy references_many as array tipusú kapcsolatok
|
|
42
|
+
esetében használható.
|
|
43
|
+
calling_document_find_with_nil_is_invalid:
|
|
44
|
+
Document#find parancs nil érték esetében érvénytelen.
|
|
45
|
+
unsaved_document:
|
|
46
|
+
You cannot call create or create! through a relational association
|
|
47
|
+
relation (%{document}) who's parent (%{base}) is not already saved.
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
it:
|
|
2
|
+
activemodel:
|
|
3
|
+
errors:
|
|
4
|
+
messages:
|
|
5
|
+
taken: è già utilizzato
|
|
6
|
+
|
|
7
|
+
mongoid:
|
|
8
|
+
errors:
|
|
9
|
+
messages:
|
|
10
|
+
document_not_found:
|
|
11
|
+
Documento non trovato per la classe %{klass} con id(s) %{identifiers}.
|
|
12
|
+
invalid_database:
|
|
13
|
+
Il database dovrebbe essere un Mongo::DB, non %{name}.
|
|
14
|
+
invalid_type:
|
|
15
|
+
Il campo è stato definito come %{klass} ma ha ricevuto
|
|
16
|
+
un %{other} con valore %{value}.
|
|
17
|
+
unsupported_version:
|
|
18
|
+
MongoDB %{version} not è supportato, aggiorna a %{mongo_version}.
|
|
19
|
+
validations:
|
|
20
|
+
Validazione fallita - %{errors}.
|
|
21
|
+
invalid_collection:
|
|
22
|
+
Accesso alla collezione per %{klass} non permesso in quanto è
|
|
23
|
+
un documento embedded, accedi alla collezione dal documento root.
|
|
24
|
+
invalid_field:
|
|
25
|
+
Definire un campo con il nome %{name} non è permesso.
|
|
26
|
+
Non definire campi che vadano in conflitto con nomi di attributi
|
|
27
|
+
o metodi di Mongoid. Usa Document#instance_methods per consultare
|
|
28
|
+
la lista dei nomi.
|
|
29
|
+
too_many_nested_attribute_records:
|
|
30
|
+
Il numero di attrubuti nested per %{association} è limitato
|
|
31
|
+
a %{limit} records.
|
|
32
|
+
embedded_in_must_have_inverse_of:
|
|
33
|
+
Le opzioni di associazioni embedded_in devono includere inverse_of.
|
|
34
|
+
dependent_only_references_one_or_many:
|
|
35
|
+
"L'opzione dependent => destroy|delete è valida solo per
|
|
36
|
+
associazioni references_one o references_many."
|
|
37
|
+
association_cant_have_inverse_of:
|
|
38
|
+
Non è permesso definire un inverse_of in questa associazione.
|
|
39
|
+
Usa questa opzione solo per embedded_in o references_many as array.
|
|
40
|
+
unsaved_document:
|
|
41
|
+
You cannot call create or create! through a relational association
|
|
42
|
+
relation (%{document}) who's parent (%{base}) is not already saved.
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
kr:
|
|
2
|
+
activemodel:
|
|
3
|
+
errors:
|
|
4
|
+
messages:
|
|
5
|
+
taken: 이미 사용하고있습니다 #is already taken
|
|
6
|
+
|
|
7
|
+
mongoid:
|
|
8
|
+
errors:
|
|
9
|
+
messages:
|
|
10
|
+
document_not_found:
|
|
11
|
+
클라스 %{klass}와 id를 %{identifiers} 위한 문서를 찾을수 없습니다.
|
|
12
|
+
#Document not found for class %{klass} with id(s) %{identifiers}.
|
|
13
|
+
|
|
14
|
+
invalid_database:
|
|
15
|
+
데이타베이스가 Mongo::DB이어야 합니다, %{name}이면 안됩니다.
|
|
16
|
+
#Database should be a Mongo::DB, not %{name}.
|
|
17
|
+
|
|
18
|
+
invalid_type:
|
|
19
|
+
데이터 필드가 %{klass} 처럼 정의를 내립니다. 하지만 그것은 %{other}를 %{value} 으로 산출되어 받습니다
|
|
20
|
+
#Field was defined as a(n) %{klass}, but received a %{other} with
|
|
21
|
+
#the value %{value}.
|
|
22
|
+
|
|
23
|
+
unsupported_version:
|
|
24
|
+
MongoDB %{version} 를 사용할수 없습니다. %{mongo_version} 으로 업그레이드 시켜주세요.
|
|
25
|
+
#MongoDB %{version} not supported, please upgrade
|
|
26
|
+
#to %{mongo_version}.
|
|
27
|
+
|
|
28
|
+
validations:
|
|
29
|
+
확인할수 없습니다 - %{errors}.
|
|
30
|
+
#Validation failed - %{errors}.
|
|
31
|
+
|
|
32
|
+
invalid_collection:
|
|
33
|
+
%{klass} 를 위한 콜렉션에 접근하는것은 임베디드 문서이게 때문에 허락되지 않습니다. 루트 문서에서 콜렉션을 접근해 주세요
|
|
34
|
+
#Access to the collection for %{klass} is not allowed since it
|
|
35
|
+
#is an embedded document, please access a collection from
|
|
36
|
+
#the root document.
|
|
37
|
+
|
|
38
|
+
invalid_field:
|
|
39
|
+
필드의 정의를 %{name}으로 이름짓는것은 허락되지 않습니다.
|
|
40
|
+
Mongoid 내부의 속성과 메서드이름이 충돌이 되므로 필드의 정의를 내리지 마세요.
|
|
41
|
+
어떤이름이 포함되는지 보려면 Document#instance_methods를 사용하세요.
|
|
42
|
+
#Defining a field named %{name} is not allowed. Do not define
|
|
43
|
+
#fields that conflict with Mongoid internal attributes or method
|
|
44
|
+
#names. Use Document#instance_methods to see what names this includes.
|
|
45
|
+
|
|
46
|
+
too_many_nested_attribute_records:
|
|
47
|
+
%{association} 을 위한 내부의 속성을 수용하는것은 %{limit}데이터로 제한되어있습니다.
|
|
48
|
+
#Accepting nested attributes for %{association} is limited
|
|
49
|
+
#to %{limit} records.
|
|
50
|
+
|
|
51
|
+
embedded_in_must_have_inverse_of:
|
|
52
|
+
embedded_in 관련되는 옵션은 inverse_of 를 포함해야만 합니다.
|
|
53
|
+
#Options for embedded_in association must include inverse_of.
|
|
54
|
+
|
|
55
|
+
dependent_only_references_one_or_many:
|
|
56
|
+
공급되는 dependent => destroy|delete 옵션은 오직 references_one 또는 references_many 관련되는것에서만 확인 가능합니다.
|
|
57
|
+
#The dependent => destroy|delete option that was supplied
|
|
58
|
+
#is only valid on references_one or references_many associations.
|
|
59
|
+
|
|
60
|
+
association_cant_have_inverse_of:
|
|
61
|
+
이관련된것에서 inverse_of 처럼 정의내리는것은 허락되지 않습니다.
|
|
62
|
+
오직 embedded_in 에있는 옵션 또는 array된 references_many 옵션을 사용하세요
|
|
63
|
+
#Defining an inverse_of on this association is not allowed. Only
|
|
64
|
+
#use this option on embedded_in or references_many as array.
|
|
65
|
+
|
|
66
|
+
unsaved_document:
|
|
67
|
+
You cannot call create or create! through a relational association
|
|
68
|
+
relation (%{document}) who's parent (%{base}) is not already saved.
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
nl:
|
|
2
|
+
activemodel:
|
|
3
|
+
errors:
|
|
4
|
+
messages:
|
|
5
|
+
taken: al in gebruik
|
|
6
|
+
|
|
7
|
+
mongoid:
|
|
8
|
+
errors:
|
|
9
|
+
messages:
|
|
10
|
+
document_not_found:
|
|
11
|
+
Document niet gevonden voor class %{klass} met de id(s) %{identifiers}.
|
|
12
|
+
invalid_database:
|
|
13
|
+
Database moet een Mongo::DB zijn, niet een %{name}.
|
|
14
|
+
invalid_type:
|
|
15
|
+
Veld was gedefinieerd als een %{klass}, maar ontvangen als %{other} met
|
|
16
|
+
de waarde %{value}.
|
|
17
|
+
unsupported_version:
|
|
18
|
+
MongoDB %{version} wordt niet ondersteund, upgrade naar versie %{mongo_version}.
|
|
19
|
+
validations:
|
|
20
|
+
Gefaalde validatie - %{errors}.
|
|
21
|
+
invalid_collection:
|
|
22
|
+
Toegang tot de collectie voor %{klass} is niet toegestaan aangezien het
|
|
23
|
+
een embedded document is, benader de collectie van een root document.
|
|
24
|
+
invalid_field:
|
|
25
|
+
Het is niet toegestaan om een veld genaamd %{name} te definiëren.
|
|
26
|
+
Definieer geen velden die conflicteren met de Mongoid interne attributen of methode namen.
|
|
27
|
+
Gerbuik Document#instance_methods om welke namen dit gaat.
|
|
28
|
+
too_many_nested_attribute_records:
|
|
29
|
+
Het accepteren van nested attributes voor %{association} is gelimiteerd tot %{limit} records.
|
|
30
|
+
embedded_in_must_have_inverse_of:
|
|
31
|
+
Opties voor embedded_in association moet gebruik maken van de inverse_of optie.
|
|
32
|
+
dependent_only_references_one_or_many:
|
|
33
|
+
De dependent => destroy|delete optie die was meegegeven is alleen geldig
|
|
34
|
+
op references_one en references_many associations.
|
|
35
|
+
association_cant_have_inverse_of:
|
|
36
|
+
Het definieren van een inverse_of op deze association is niet toegestaan. Gebruik
|
|
37
|
+
alleen deze optie met embedded_in en references_many as array.
|
|
38
|
+
calling_document_find_with_nil_is_invalid:
|
|
39
|
+
Het is niet toegestaan om Document#find aan te roepen met de waarde nil.
|
|
40
|
+
unsaved_document:
|
|
41
|
+
You cannot call create or create! through a relational association
|
|
42
|
+
relation (%{document}) who's parent (%{base}) is not already saved.
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
pl:
|
|
2
|
+
activemodel:
|
|
3
|
+
errors:
|
|
4
|
+
messages:
|
|
5
|
+
taken: jest już zajęte
|
|
6
|
+
|
|
7
|
+
mongoid:
|
|
8
|
+
errors:
|
|
9
|
+
messages:
|
|
10
|
+
document_not_found:
|
|
11
|
+
Nie znaleziono dokumentu dla klasy %{klass} o id %{identifiers}.
|
|
12
|
+
invalid_database:
|
|
13
|
+
Baza danych powinna być typu Mongo::DB, a nie %{name}.
|
|
14
|
+
invalid_type:
|
|
15
|
+
Pole zostało zdefiniowane jako %{klass}, ale otrzymano %{other}
|
|
16
|
+
z wartością %{value}.
|
|
17
|
+
unsupported_version:
|
|
18
|
+
MongoDB %{version} nie jest wspierane,
|
|
19
|
+
zaktualizuj do %{mongo_version}.
|
|
20
|
+
validations:
|
|
21
|
+
Weryfikacja nie powiodła się - %{errors}.
|
|
22
|
+
invalid_collection:
|
|
23
|
+
Dostęp do kolekcji %{klass} jest niedozwolony ponieważ jest ona
|
|
24
|
+
dokumentem wbudowanym, użyj kolekcji przez dokument główny.
|
|
25
|
+
invalid_field:
|
|
26
|
+
Definiowanie pola o nazwie %{name} jest niedozwolone. Nie definiuj pól
|
|
27
|
+
konfliktujących z wewnętrznymi atrubutami lub metodami Mongoid.
|
|
28
|
+
Użyj Document#instance_methods aby zobaczyć te nazwy.
|
|
29
|
+
too_many_nested_attribute_records:
|
|
30
|
+
Przyjmowanie zagnieżdżonych atrybutów dla %{association} jest
|
|
31
|
+
ograniczone do %{limit} rekordów.
|
|
32
|
+
embedded_in_must_have_inverse_of:
|
|
33
|
+
Opcje dla asocjacji embedded_in muszą zawierać inverse_of.
|
|
34
|
+
dependent_only_references_one_or_many:
|
|
35
|
+
Podana opcja dependent => destroy|delete jest uzasadniona tylko
|
|
36
|
+
w przypadku asocjacji references_one lub references_many.
|
|
37
|
+
association_cant_have_inverse_of:
|
|
38
|
+
Definiowanie inverse_of dla tej asocjacji jest niedozwolone. Używaj
|
|
39
|
+
tej opcji tylko z embedded_in lub references_many as array.
|
|
40
|
+
unsaved_document:
|
|
41
|
+
You cannot call create or create! through a relational association
|
|
42
|
+
relation (%{document}) who's parent (%{base}) is not already saved.
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
pt-br:
|
|
2
|
+
activemodel:
|
|
3
|
+
errors:
|
|
4
|
+
messages:
|
|
5
|
+
taken: já está utilizada
|
|
6
|
+
|
|
7
|
+
mongoid:
|
|
8
|
+
errors:
|
|
9
|
+
messages:
|
|
10
|
+
document_not_found:
|
|
11
|
+
Nenhum documento encontrado para a classe %{klass} com os id(s) %{identifiers}.
|
|
12
|
+
invalid_database:
|
|
13
|
+
A base de dados deverá ser uma Mongo::DB, em vez de %{name}.
|
|
14
|
+
invalid_type:
|
|
15
|
+
O campo foi definido como %{klass}, mas recebeu uma instância de %{other} com
|
|
16
|
+
o valor %{value}.
|
|
17
|
+
unsupported_version:
|
|
18
|
+
MongoDB %{version} não é suportada, por favor atualize para a
|
|
19
|
+
versão %{mongo_version}.
|
|
20
|
+
validations:
|
|
21
|
+
A validação falhou - %{errors}.
|
|
22
|
+
invalid_collection:
|
|
23
|
+
O acesso à colecção para %{klass} não é permitido porque
|
|
24
|
+
é um documento embutido, por favor acesse à colecção através
|
|
25
|
+
do documento raiz.
|
|
26
|
+
invalid_field:
|
|
27
|
+
Não é permitido definir um campo com o nome %{name}. Não defina
|
|
28
|
+
campos que entrem em conflito com os nomes dos atributos internos e métodos
|
|
29
|
+
do Mongoid. Use Document#instance_methods para consultar esses nomes.
|
|
30
|
+
too_many_nested_attribute_records:
|
|
31
|
+
A aceitação de atributos encadeados para %{association} encontra-se limitada
|
|
32
|
+
a %{limit} registros.
|
|
33
|
+
embedded_in_must_have_inverse_of:
|
|
34
|
+
As opções para uma associação embedded_in devem incluir inverse_of.
|
|
35
|
+
dependent_only_references_one_or_many:
|
|
36
|
+
A opção The dependent => destroy|delete que é fornecida
|
|
37
|
+
é apenas válida para associações references_one ou references_many.
|
|
38
|
+
association_cant_have_inverse_of:
|
|
39
|
+
A definição de inverse_of nesta associação não é permitida. Apenas
|
|
40
|
+
use esta opção em embedded_in ou references_many as array.
|
|
41
|
+
unsaved_document:
|
|
42
|
+
You cannot call create or create! through a relational association
|
|
43
|
+
relation (%{document}) who's parent (%{base}) is not already saved.
|