mongoid-braxton 2.0.2
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 +41 -0
- data/lib/config/locales/de.yml +41 -0
- data/lib/config/locales/en.yml +45 -0
- data/lib/config/locales/es.yml +41 -0
- data/lib/config/locales/fr.yml +42 -0
- data/lib/config/locales/hu.yml +44 -0
- data/lib/config/locales/id.yml +46 -0
- data/lib/config/locales/it.yml +39 -0
- data/lib/config/locales/ja.yml +40 -0
- data/lib/config/locales/kr.yml +65 -0
- data/lib/config/locales/nl.yml +39 -0
- data/lib/config/locales/pl.yml +39 -0
- data/lib/config/locales/pt-BR.yml +40 -0
- data/lib/config/locales/pt.yml +40 -0
- data/lib/config/locales/ro.yml +46 -0
- data/lib/config/locales/ru.yml +41 -0
- data/lib/config/locales/sv.yml +40 -0
- data/lib/config/locales/vi.yml +45 -0
- data/lib/config/locales/zh-CN.yml +33 -0
- data/lib/mongoid.rb +140 -0
- data/lib/mongoid/atomicity.rb +111 -0
- data/lib/mongoid/attributes.rb +185 -0
- data/lib/mongoid/attributes/processing.rb +145 -0
- data/lib/mongoid/callbacks.rb +23 -0
- data/lib/mongoid/collection.rb +137 -0
- data/lib/mongoid/collections.rb +71 -0
- data/lib/mongoid/collections/master.rb +37 -0
- data/lib/mongoid/collections/operations.rb +42 -0
- data/lib/mongoid/collections/retry.rb +39 -0
- data/lib/mongoid/components.rb +45 -0
- data/lib/mongoid/config.rb +349 -0
- data/lib/mongoid/config/database.rb +167 -0
- data/lib/mongoid/config/replset_database.rb +78 -0
- data/lib/mongoid/contexts.rb +19 -0
- data/lib/mongoid/contexts/enumerable.rb +275 -0
- data/lib/mongoid/contexts/enumerable/sort.rb +43 -0
- data/lib/mongoid/contexts/mongo.rb +345 -0
- data/lib/mongoid/copyable.rb +46 -0
- data/lib/mongoid/criteria.rb +357 -0
- data/lib/mongoid/criterion/builder.rb +34 -0
- data/lib/mongoid/criterion/complex.rb +34 -0
- data/lib/mongoid/criterion/creational.rb +34 -0
- data/lib/mongoid/criterion/exclusion.rb +108 -0
- data/lib/mongoid/criterion/inclusion.rb +198 -0
- data/lib/mongoid/criterion/inspection.rb +22 -0
- data/lib/mongoid/criterion/optional.rb +193 -0
- data/lib/mongoid/criterion/selector.rb +143 -0
- data/lib/mongoid/criterion/unconvertable.rb +20 -0
- data/lib/mongoid/cursor.rb +86 -0
- data/lib/mongoid/default_scope.rb +36 -0
- data/lib/mongoid/dirty.rb +253 -0
- data/lib/mongoid/document.rb +284 -0
- data/lib/mongoid/errors.rb +13 -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/mixed_relations.rb +37 -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/extensions.rb +123 -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/checks.rb +32 -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 +96 -0
- data/lib/mongoid/extensions/proc/scoping.rb +12 -0
- data/lib/mongoid/extensions/range/conversions.rb +25 -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/extras.rb +42 -0
- data/lib/mongoid/factory.rb +37 -0
- data/lib/mongoid/field.rb +162 -0
- data/lib/mongoid/fields.rb +183 -0
- data/lib/mongoid/finders.rb +127 -0
- data/lib/mongoid/hierarchy.rb +85 -0
- data/lib/mongoid/identity.rb +92 -0
- data/lib/mongoid/indexes.rb +38 -0
- data/lib/mongoid/inspection.rb +54 -0
- data/lib/mongoid/javascript.rb +21 -0
- data/lib/mongoid/javascript/functions.yml +37 -0
- data/lib/mongoid/json.rb +16 -0
- data/lib/mongoid/keys.rb +131 -0
- data/lib/mongoid/logger.rb +18 -0
- data/lib/mongoid/matchers.rb +32 -0
- data/lib/mongoid/matchers/all.rb +11 -0
- data/lib/mongoid/matchers/default.rb +70 -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/or.rb +30 -0
- data/lib/mongoid/matchers/size.rb +11 -0
- data/lib/mongoid/matchers/strategies.rb +63 -0
- data/lib/mongoid/multi_database.rb +11 -0
- data/lib/mongoid/multi_parameter_attributes.rb +82 -0
- data/lib/mongoid/named_scope.rb +137 -0
- data/lib/mongoid/nested_attributes.rb +51 -0
- data/lib/mongoid/observer.rb +67 -0
- data/lib/mongoid/paranoia.rb +103 -0
- data/lib/mongoid/paths.rb +61 -0
- data/lib/mongoid/persistence.rb +240 -0
- data/lib/mongoid/persistence/atomic.rb +88 -0
- data/lib/mongoid/persistence/atomic/add_to_set.rb +32 -0
- data/lib/mongoid/persistence/atomic/inc.rb +28 -0
- data/lib/mongoid/persistence/atomic/operation.rb +44 -0
- data/lib/mongoid/persistence/atomic/pull_all.rb +33 -0
- data/lib/mongoid/persistence/atomic/push.rb +28 -0
- data/lib/mongoid/persistence/command.rb +71 -0
- data/lib/mongoid/persistence/insert.rb +53 -0
- data/lib/mongoid/persistence/insert_embedded.rb +43 -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 +77 -0
- data/lib/mongoid/railtie.rb +139 -0
- data/lib/mongoid/railties/database.rake +171 -0
- data/lib/mongoid/railties/document.rb +12 -0
- data/lib/mongoid/relations.rb +107 -0
- data/lib/mongoid/relations/accessors.rb +175 -0
- data/lib/mongoid/relations/auto_save.rb +34 -0
- data/lib/mongoid/relations/binding.rb +26 -0
- data/lib/mongoid/relations/bindings.rb +9 -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 +103 -0
- data/lib/mongoid/relations/bindings/referenced/one.rb +66 -0
- data/lib/mongoid/relations/builder.rb +42 -0
- data/lib/mongoid/relations/builders.rb +79 -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 +126 -0
- data/lib/mongoid/relations/builders/nested_attributes/one.rb +135 -0
- data/lib/mongoid/relations/builders/referenced/in.rb +29 -0
- data/lib/mongoid/relations/builders/referenced/many.rb +47 -0
- data/lib/mongoid/relations/builders/referenced/many_to_many.rb +29 -0
- data/lib/mongoid/relations/builders/referenced/one.rb +27 -0
- data/lib/mongoid/relations/cascading.rb +55 -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/constraint.rb +42 -0
- data/lib/mongoid/relations/cyclic.rb +103 -0
- data/lib/mongoid/relations/embedded/atomic.rb +86 -0
- data/lib/mongoid/relations/embedded/atomic/operation.rb +63 -0
- data/lib/mongoid/relations/embedded/atomic/pull.rb +65 -0
- data/lib/mongoid/relations/embedded/atomic/push_all.rb +59 -0
- data/lib/mongoid/relations/embedded/atomic/set.rb +61 -0
- data/lib/mongoid/relations/embedded/atomic/unset.rb +41 -0
- data/lib/mongoid/relations/embedded/in.rb +173 -0
- data/lib/mongoid/relations/embedded/many.rb +499 -0
- data/lib/mongoid/relations/embedded/one.rb +170 -0
- data/lib/mongoid/relations/macros.rb +310 -0
- data/lib/mongoid/relations/many.rb +215 -0
- data/lib/mongoid/relations/metadata.rb +539 -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 +143 -0
- data/lib/mongoid/relations/referenced/batch.rb +71 -0
- data/lib/mongoid/relations/referenced/batch/insert.rb +57 -0
- data/lib/mongoid/relations/referenced/in.rb +216 -0
- data/lib/mongoid/relations/referenced/many.rb +516 -0
- data/lib/mongoid/relations/referenced/many_to_many.rb +396 -0
- data/lib/mongoid/relations/referenced/one.rb +222 -0
- data/lib/mongoid/relations/reflections.rb +45 -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/sharding.rb +51 -0
- data/lib/mongoid/state.rb +67 -0
- data/lib/mongoid/timestamps.rb +14 -0
- data/lib/mongoid/timestamps/created.rb +31 -0
- data/lib/mongoid/timestamps/updated.rb +33 -0
- data/lib/mongoid/validations.rb +124 -0
- data/lib/mongoid/validations/associated.rb +44 -0
- data/lib/mongoid/validations/referenced.rb +58 -0
- data/lib/mongoid/validations/uniqueness.rb +85 -0
- data/lib/mongoid/version.rb +4 -0
- data/lib/mongoid/versioning.rb +113 -0
- data/lib/rails/generators/mongoid/config/config_generator.rb +25 -0
- data/lib/rails/generators/mongoid/config/templates/mongoid.yml +20 -0
- data/lib/rails/generators/mongoid/model/model_generator.rb +24 -0
- data/lib/rails/generators/mongoid/model/templates/model.rb +19 -0
- data/lib/rails/generators/mongoid/observer/observer_generator.rb +17 -0
- data/lib/rails/generators/mongoid/observer/templates/observer.rb +4 -0
- data/lib/rails/generators/mongoid_generator.rb +70 -0
- data/lib/rails/mongoid.rb +58 -0
- metadata +406 -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 "rdoc/task"
|
|
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:functional") do |spec|
|
|
36
|
+
spec.pattern = "spec/functional/**/*_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
|
+
RDoc::Task.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,41 @@
|
|
|
1
|
+
bg:
|
|
2
|
+
mongoid:
|
|
3
|
+
errors:
|
|
4
|
+
messages:
|
|
5
|
+
taken:
|
|
6
|
+
е вече заето
|
|
7
|
+
document_not_found:
|
|
8
|
+
Не е намерен документ %{klass} с id(та) %{identifiers}.
|
|
9
|
+
invalid_database:
|
|
10
|
+
Базата данни трябва да е от тип Mnogo:DB, а не %{name}.
|
|
11
|
+
invalid_type:
|
|
12
|
+
Полето е дефинирано като a(n) %{klass}, но се присвоява %{other}
|
|
13
|
+
със стойност %{value}.
|
|
14
|
+
unsupported_version:
|
|
15
|
+
MongoDB %{version} не се подържа, моля ползвайте версия след %{mongo_version}.
|
|
16
|
+
validations:
|
|
17
|
+
Неуспешна валидация - %{errors} грешки.
|
|
18
|
+
invalid_collection:
|
|
19
|
+
Достъпа до колекцията за %{klass} не е разрешена, тъй като
|
|
20
|
+
тя е вложен документ, можете да я достъпите през главният документ
|
|
21
|
+
invalid_field:
|
|
22
|
+
Дефинирането на поле с име %{name} не е разрешено. Не дефинирайте
|
|
23
|
+
полета, които са в конфликт с Mongoid вътрешните атрибути.
|
|
24
|
+
Можете да ги видите с Document#instance_methods
|
|
25
|
+
too_many_nested_attribute_records:
|
|
26
|
+
Присвояването на вложини атрибути за %{association} е
|
|
27
|
+
ограничено до %{limit} записа
|
|
28
|
+
embedded_in_must_have_inverse_of:
|
|
29
|
+
Опциите на embedded_in асоциацията трябва да съдържат inverse_of.
|
|
30
|
+
dependent_only_references_one_or_many:
|
|
31
|
+
Опцията dependent => destroy|delete, която е посочена е
|
|
32
|
+
валидна само за references_one или references_many връзки
|
|
33
|
+
association_cant_have_inverse_of:
|
|
34
|
+
Дефинирането на inverse_of за тази асоциация не е позволено.
|
|
35
|
+
Използвайте тази опция само за embedded_in или
|
|
36
|
+
references_many като масив.
|
|
37
|
+
calling_document_find_with_nil_is_invalid:
|
|
38
|
+
Извикването на Document#find със nil е невалидно
|
|
39
|
+
unsaved_document:
|
|
40
|
+
You cannot call create or create! through a relational association
|
|
41
|
+
relation (%{document}) who's parent (%{base}) is not already saved.
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
de:
|
|
2
|
+
mongoid:
|
|
3
|
+
errors:
|
|
4
|
+
messages:
|
|
5
|
+
taken:
|
|
6
|
+
ist bereits vergeben
|
|
7
|
+
document_not_found:
|
|
8
|
+
Dokument für Klasse %{klass} mit ID(s) %{identifiers} nicht gefunden.
|
|
9
|
+
invalid_database:
|
|
10
|
+
Datenbank sollte eine Mongo::DB sein, nicht %{name}.
|
|
11
|
+
invalid_type:
|
|
12
|
+
Feld wurde als a(n) %{klass} definiert, doch der Wert %{value} vom Typ
|
|
13
|
+
%{other} wurde übergeben.
|
|
14
|
+
unsupported_version:
|
|
15
|
+
MongoDB %{version} wird nicht unterstützt, bitte auf Version
|
|
16
|
+
%{mongo_version} aktualisieren.
|
|
17
|
+
validations:
|
|
18
|
+
Validierung fehlgeschlagen - %{errors}.
|
|
19
|
+
invalid_collection:
|
|
20
|
+
Zugriff auf die Collection von %{klass} ist nicht erlaubt,
|
|
21
|
+
da es sich um ein eingebettetes Dokument handelt. Auf die Collection
|
|
22
|
+
kann vom Wurzeldokument aus zugegriffen werden.
|
|
23
|
+
invalid_field:
|
|
24
|
+
Das Feld %{name} kann nicht definiert werden, da sein Name mit
|
|
25
|
+
einem internen Mongoid-Attribut oder Methodennamen kollidiert.
|
|
26
|
+
Siehe Document#instance_methods für eine Auflistung dieser Namen.
|
|
27
|
+
too_many_nested_attribute_records:
|
|
28
|
+
Verschachtelte Attribute für %{association} sind auf %{limit} Einträge
|
|
29
|
+
beschränkt.
|
|
30
|
+
embedded_in_must_have_inverse_of:
|
|
31
|
+
Die Optionen für eine embedded_in-Beziehung müssen inverse_of beinhalten.
|
|
32
|
+
dependent_only_references_one_or_many:
|
|
33
|
+
Die dependent => destroy|delete-Option ist nur für
|
|
34
|
+
references_one oder references_many-Beziehungen gültig.
|
|
35
|
+
association_cant_have_inverse_of:
|
|
36
|
+
Es ist nicht erlaubt, inverse_of für diese Beziehung zu definieren.
|
|
37
|
+
Diese Option kann nur für embedded_in oder references_many als Array
|
|
38
|
+
verwendet werden.
|
|
39
|
+
unsaved_document:
|
|
40
|
+
You cannot call create or create! through a relational association
|
|
41
|
+
relation (%{document}) who's parent (%{base}) is not already saved.
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
en:
|
|
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_type:
|
|
12
|
+
Field was defined as a(n) %{klass}, but received a %{other} with
|
|
13
|
+
the value %{value}.
|
|
14
|
+
unsupported_version:
|
|
15
|
+
MongoDB %{version} not supported, please upgrade
|
|
16
|
+
to %{mongo_version}.
|
|
17
|
+
validations:
|
|
18
|
+
Validation failed - %{errors}.
|
|
19
|
+
invalid_collection:
|
|
20
|
+
Access to the collection for %{klass} is not allowed since it
|
|
21
|
+
is an embedded document, please access a collection from
|
|
22
|
+
the root document.
|
|
23
|
+
invalid_field:
|
|
24
|
+
Defining a field named %{name} is not allowed. Do not define
|
|
25
|
+
fields that conflict with Mongoid internal attributes or method
|
|
26
|
+
names. Use Document#instance_methods to see what names this includes.
|
|
27
|
+
too_many_nested_attribute_records:
|
|
28
|
+
Accepting nested attributes for %{association} is limited
|
|
29
|
+
to %{limit} records.
|
|
30
|
+
embedded_in_must_have_inverse_of:
|
|
31
|
+
Options for embedded_in association must include inverse_of.
|
|
32
|
+
dependent_only_references_one_or_many:
|
|
33
|
+
The dependent => destroy|delete option that was supplied
|
|
34
|
+
is only valid on references_one or references_many associations.
|
|
35
|
+
association_cant_have_inverse_of:
|
|
36
|
+
Defining an inverse_of on this association is not allowed. Only
|
|
37
|
+
use this option on embedded_in or references_many as array.
|
|
38
|
+
calling_document_find_with_nil_is_invalid:
|
|
39
|
+
Calling Document#find with nil is invalid
|
|
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.
|
|
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.
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
es:
|
|
2
|
+
mongoid:
|
|
3
|
+
errors:
|
|
4
|
+
messages:
|
|
5
|
+
taken:
|
|
6
|
+
ya está en uso
|
|
7
|
+
document_not_found:
|
|
8
|
+
No se encontró ningún documento para la clase %{klass} con los id(s) %{identifiers}.
|
|
9
|
+
invalid_database:
|
|
10
|
+
La base de datos debería ser una instancia de Mongo::DB, en lugar de %{name}.
|
|
11
|
+
invalid_type:
|
|
12
|
+
El campo se definió como %{klass}, pero recibió una instancia de %{other}
|
|
13
|
+
con el valor %{value}.
|
|
14
|
+
unsupported_version:
|
|
15
|
+
MongoDB %{version} no está soportada, por favor actualize a
|
|
16
|
+
%{mongo_version}.
|
|
17
|
+
validations:
|
|
18
|
+
La validación falló - %{errors}.
|
|
19
|
+
invalid_collection:
|
|
20
|
+
El acceso a la colección %{klass} no está permitido, ya que
|
|
21
|
+
es un documento incrustado, por favor acceda a la colección
|
|
22
|
+
desde el documento raíz.
|
|
23
|
+
invalid_field:
|
|
24
|
+
No está permitido definir un campo con el nombre %{name}. No
|
|
25
|
+
defina campos que entren en conflicto con los atributos internos o
|
|
26
|
+
nombres de métodos de Mongoid. Utilice Document#instance_methods para
|
|
27
|
+
consultar los nombres ya incluidos.
|
|
28
|
+
too_many_nested_attribute_records:
|
|
29
|
+
La aceptación de atributos anidados para %{association} está limitada
|
|
30
|
+
a %{limit} registros.
|
|
31
|
+
embedded_in_must_have_inverse_of:
|
|
32
|
+
Las opciones de una asociación embedded_in deben incluir inverse_of.
|
|
33
|
+
dependent_only_references_one_or_many:
|
|
34
|
+
La opción dependent => destroy|delete proporcionada
|
|
35
|
+
sólo es válida en asociaciones references_one o references_many.
|
|
36
|
+
association_cant_have_inverse_of:
|
|
37
|
+
No está permitido definir inverse_of en esta asociación. Utilice
|
|
38
|
+
esta opción sólo en embedded_in o en references_many as array.
|
|
39
|
+
unsaved_document:
|
|
40
|
+
You cannot call create or create! through a relational association
|
|
41
|
+
relation (%{document}) who's parent (%{base}) is not already saved.
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
fr:
|
|
2
|
+
mongoid:
|
|
3
|
+
errors:
|
|
4
|
+
messages:
|
|
5
|
+
taken:
|
|
6
|
+
est déjà pris.
|
|
7
|
+
document_not_found:
|
|
8
|
+
Document introuvable pour la classe %{klass} avec les ids %{identifiers}.
|
|
9
|
+
invalid_database:
|
|
10
|
+
La base de données doit être une Mongo::DB, pas %{name}.
|
|
11
|
+
invalid_type:
|
|
12
|
+
Le champ a été défini comme un(e) %{klass} mais a reçu un(e)
|
|
13
|
+
%{other} avec la valeur %{value}.
|
|
14
|
+
unsupported_version:
|
|
15
|
+
"MongoDB %{version} n'est pas supporté, veuillez mettre à jour avec
|
|
16
|
+
%{mongo_version}"
|
|
17
|
+
validations:
|
|
18
|
+
La validation a échouée - %{errors}.
|
|
19
|
+
invalid_collection:
|
|
20
|
+
"L'accès à la collection pour %{klass} n'est pas autorisé puisque
|
|
21
|
+
ce n'est pas un document embarqué, veuillez accéder à la collection
|
|
22
|
+
depuis le document racine."
|
|
23
|
+
invalid_field:
|
|
24
|
+
"Définir un champ appellé %{name} n'est pas autorisé. Veuillez ne
|
|
25
|
+
pas définir de champs en conflit avec les attributs internes de
|
|
26
|
+
Mongoid ou des noms de méthodes. Utilisez Document#instance_methods
|
|
27
|
+
pour consulter la liste des noms."
|
|
28
|
+
too_many_nested_attribute_records:
|
|
29
|
+
"Le nombre d'attributs imbriqués pour %{association} est limité à
|
|
30
|
+
%{limit} enregistrements."
|
|
31
|
+
embedded_in_must_have_inverse_of:
|
|
32
|
+
Les options pour les associations embedded_in doivent inclure
|
|
33
|
+
inverse_of.
|
|
34
|
+
dependent_only_references_one_or_many:
|
|
35
|
+
"L'option dependent => destroy|delete fournie est seulement valide
|
|
36
|
+
pour les associations references_on ou references_many."
|
|
37
|
+
association_cant_have_inverse_of:
|
|
38
|
+
"Definir un inverse_of pour cette association n'est pas autorisé.
|
|
39
|
+
Utilisez cette option seulement sur embedded_in ou references_many."
|
|
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,44 @@
|
|
|
1
|
+
hu:
|
|
2
|
+
mongoid:
|
|
3
|
+
errors:
|
|
4
|
+
messages:
|
|
5
|
+
taken:
|
|
6
|
+
már foglalt
|
|
7
|
+
document_not_found:
|
|
8
|
+
%{klass} osztályban, %{identifiers} id(k)-el nem található dokumentum.
|
|
9
|
+
invalid_database:
|
|
10
|
+
Az adatbázisnak Mongo::DB-nek kellene lennie, nem %{name}.
|
|
11
|
+
invalid_type:
|
|
12
|
+
A mező %{klass} -ként volt meghatározva, de a kapott érték %{value}
|
|
13
|
+
egy %{other}.
|
|
14
|
+
unsupported_version:
|
|
15
|
+
MongoDB %{version} nem támogatott, kérjük frissítsen
|
|
16
|
+
a %{mongo_version} verzióra.
|
|
17
|
+
validations:
|
|
18
|
+
Érvénytelen - %{errors}.
|
|
19
|
+
invalid_collection:
|
|
20
|
+
%{klass} osztálybeli kollekcióhoz való hozzáférés nem engedélyezett,
|
|
21
|
+
mivel egy beágyazott dokumentum. A kollekció a gyökér dokumentumból
|
|
22
|
+
érhető el.
|
|
23
|
+
invalid_field:
|
|
24
|
+
%{name} mező név nem engedélyezett, mivel a Mongoid által használt
|
|
25
|
+
belső tulajdonság vagy eljárás névvel eggyezik. Használja a
|
|
26
|
+
Document#instance_methods parancsot ezen nevek lekérdezéséhez.
|
|
27
|
+
too_many_nested_attribute_records:
|
|
28
|
+
%{association} esetében a beágyazott tulajdonságok %{limit} számú
|
|
29
|
+
bejegyzésre elfogadhatóak.
|
|
30
|
+
embedded_in_must_have_inverse_of:
|
|
31
|
+
Az embedded_in tipusú kapcsolat esetében kötelező az inverse_of
|
|
32
|
+
opció használata.
|
|
33
|
+
dependent_only_references_one_or_many:
|
|
34
|
+
A dependent => destroy|delete opció csak a references_one vagy
|
|
35
|
+
references_many kapcsolatok esetében érvényes.
|
|
36
|
+
association_cant_have_inverse_of:
|
|
37
|
+
Ezen a tipusú kapcsolaton az inverse_of opció érvénytelen, csak
|
|
38
|
+
az embedded_in vagy references_many as array tipusú kapcsolatok
|
|
39
|
+
esetében használható.
|
|
40
|
+
calling_document_find_with_nil_is_invalid:
|
|
41
|
+
Document#find parancs nil érték esetében érvénytelen.
|
|
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,46 @@
|
|
|
1
|
+
id:
|
|
2
|
+
mongoid:
|
|
3
|
+
errors:
|
|
4
|
+
messages:
|
|
5
|
+
taken:
|
|
6
|
+
telah digunakan
|
|
7
|
+
document_not_found:
|
|
8
|
+
Dokumen tidak ditemukan untuk kelas %{klass} dengan id %{identifiers}.
|
|
9
|
+
invalid_database:
|
|
10
|
+
Database harus Mongo::DB, bukan %{name}.
|
|
11
|
+
invalid_type:
|
|
12
|
+
Field didefinisikan sebagai %{klass}, tetapi menerima %{other} dengan
|
|
13
|
+
value %{value}.
|
|
14
|
+
unsupported_version:
|
|
15
|
+
MongoDB %{version} tidak di support, silakan upgrade
|
|
16
|
+
ke %{mongo_version}.
|
|
17
|
+
validations:
|
|
18
|
+
Validasi gagal - %{errors}.
|
|
19
|
+
invalid_collection:
|
|
20
|
+
Akses terhadap koleksi %{klass} tidak diperbolehkan karena merupakan
|
|
21
|
+
embedded document, silakan akses dokumen melalui root document.
|
|
22
|
+
invalid_field:
|
|
23
|
+
Mendefinisikan field dengan nama %{name} tidak diperbolehkan. Jangan
|
|
24
|
+
mendefinisikan field yang konflik dengan nama atribut atau method
|
|
25
|
+
internal Mongoid. Gunakan Document#instance_methods untuk melihat nama
|
|
26
|
+
yang termasuk.
|
|
27
|
+
too_many_nested_attribute_records:
|
|
28
|
+
Penerimaan nested attribut untuk %{association} dibatasi %{limit}
|
|
29
|
+
record.
|
|
30
|
+
embedded_in_must_have_inverse_of:
|
|
31
|
+
Opsi untuk asosiasi embedded_in harus memiliki inverse_of.
|
|
32
|
+
dependent_only_references_one_or_many:
|
|
33
|
+
Opsi dependent => destroy|delete yang diberikan hanya valid untuk
|
|
34
|
+
asosiasi references_one atau references_many.
|
|
35
|
+
association_cant_have_inverse_of:
|
|
36
|
+
Mendefinisikan inverse_of pada asosiasi ini tidak diperbolehkan. Hanya
|
|
37
|
+
gunakan opsi ini pada embedded_in atau references_many sebagai array.
|
|
38
|
+
calling_document_find_with_nil_is_invalid:
|
|
39
|
+
Memanggil Document#find dengan nil adalah tidak valid
|
|
40
|
+
unsaved_document:
|
|
41
|
+
Anda tidak dapat memanggil create atau create! melalui asosiasi
|
|
42
|
+
relational (%{document}) yang parent-nya (%{base}) belum disimpan.
|
|
43
|
+
mixed_relations:
|
|
44
|
+
Mereferensi sebuah %{embedded} document dari %{root} dokumen melalui
|
|
45
|
+
asosiasi relasional tidak diperbolehkan karena %{embedded}
|
|
46
|
+
adalah dokumen embedded.
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
it:
|
|
2
|
+
mongoid:
|
|
3
|
+
errors:
|
|
4
|
+
messages:
|
|
5
|
+
taken:
|
|
6
|
+
è già utilizzato
|
|
7
|
+
document_not_found:
|
|
8
|
+
Documento non trovato per la classe %{klass} con id(s) %{identifiers}.
|
|
9
|
+
invalid_database:
|
|
10
|
+
Il database dovrebbe essere un Mongo::DB, non %{name}.
|
|
11
|
+
invalid_type:
|
|
12
|
+
Il campo è stato definito come %{klass} ma ha ricevuto
|
|
13
|
+
un %{other} con valore %{value}.
|
|
14
|
+
unsupported_version:
|
|
15
|
+
MongoDB %{version} not è supportato, aggiorna a %{mongo_version}.
|
|
16
|
+
validations:
|
|
17
|
+
Validazione fallita - %{errors}.
|
|
18
|
+
invalid_collection:
|
|
19
|
+
Accesso alla collezione per %{klass} non permesso in quanto è
|
|
20
|
+
un documento embedded, accedi alla collezione dal documento root.
|
|
21
|
+
invalid_field:
|
|
22
|
+
Definire un campo con il nome %{name} non è permesso.
|
|
23
|
+
Non definire campi che vadano in conflitto con nomi di attributi
|
|
24
|
+
o metodi di Mongoid. Usa Document#instance_methods per consultare
|
|
25
|
+
la lista dei nomi.
|
|
26
|
+
too_many_nested_attribute_records:
|
|
27
|
+
Il numero di attrubuti nested per %{association} è limitato
|
|
28
|
+
a %{limit} records.
|
|
29
|
+
embedded_in_must_have_inverse_of:
|
|
30
|
+
Le opzioni di associazioni embedded_in devono includere inverse_of.
|
|
31
|
+
dependent_only_references_one_or_many:
|
|
32
|
+
"L'opzione dependent => destroy|delete è valida solo per
|
|
33
|
+
associazioni references_one o references_many."
|
|
34
|
+
association_cant_have_inverse_of:
|
|
35
|
+
Non è permesso definire un inverse_of in questa associazione.
|
|
36
|
+
Usa questa opzione solo per embedded_in o references_many as array.
|
|
37
|
+
unsaved_document:
|
|
38
|
+
You cannot call create or create! through a relational association
|
|
39
|
+
relation (%{document}) who's parent (%{base}) is not already saved.
|