mongoid 2.8.1 → 3.0.0.rc
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.md +802 -58
- data/LICENSE +1 -1
- data/README.md +10 -11
- data/Rakefile +2 -8
- data/lib/config/locales/en.yml +441 -51
- data/lib/mongoid.rb +24 -39
- data/lib/mongoid/atomic.rb +16 -33
- data/lib/mongoid/atomic/modifiers.rb +2 -2
- data/lib/mongoid/atomic/paths/embedded.rb +4 -5
- data/lib/mongoid/atomic/paths/embedded/many.rb +6 -6
- data/lib/mongoid/atomic/paths/embedded/one.rb +5 -5
- data/lib/mongoid/atomic/paths/root.rb +4 -5
- data/lib/mongoid/attributes.rb +95 -32
- data/lib/mongoid/attributes/processing.rb +14 -10
- data/lib/mongoid/attributes/readonly.rb +56 -0
- data/lib/mongoid/callbacks.rb +90 -27
- data/lib/mongoid/collections/retry.rb +2 -3
- data/lib/mongoid/components.rb +11 -23
- data/lib/mongoid/config.rb +87 -233
- data/lib/mongoid/config/environment.rb +5 -6
- data/lib/mongoid/config/inflections.rb +6 -0
- data/lib/mongoid/config/options.rb +1 -1
- data/lib/mongoid/config/validators.rb +3 -0
- data/lib/mongoid/config/validators/option.rb +25 -0
- data/lib/mongoid/config/validators/session.rb +140 -0
- data/lib/mongoid/contextual.rb +50 -0
- data/lib/mongoid/contextual/aggregable/memory.rb +98 -0
- data/lib/mongoid/contextual/aggregable/mongo.rb +181 -0
- data/lib/mongoid/contextual/atomic.rb +179 -0
- data/lib/mongoid/contextual/command.rb +43 -0
- data/lib/mongoid/contextual/find_and_modify.rb +66 -0
- data/lib/mongoid/contextual/map_reduce.rb +273 -0
- data/lib/mongoid/contextual/memory.rb +383 -0
- data/lib/mongoid/contextual/mongo.rb +543 -0
- data/lib/mongoid/copyable.rb +3 -34
- data/lib/mongoid/criteria.rb +436 -250
- data/lib/mongoid/criterion/inspection.rb +14 -8
- data/lib/mongoid/criterion/scoping.rb +114 -44
- data/lib/mongoid/dirty.rb +152 -67
- data/lib/mongoid/document.rb +69 -50
- data/lib/mongoid/errors.rb +22 -1
- data/lib/mongoid/errors/ambiguous_relationship.rb +51 -0
- data/lib/mongoid/errors/callback.rb +5 -6
- data/lib/mongoid/errors/delete_restriction.rb +29 -0
- data/lib/mongoid/errors/document_not_found.rb +98 -17
- data/lib/mongoid/errors/eager_load.rb +3 -6
- data/lib/mongoid/errors/invalid_collection.rb +3 -3
- data/lib/mongoid/errors/invalid_config_option.rb +27 -0
- data/lib/mongoid/errors/invalid_database.rb +3 -3
- data/lib/mongoid/errors/invalid_field.rb +54 -8
- data/lib/mongoid/errors/invalid_field_option.rb +35 -0
- data/lib/mongoid/errors/invalid_find.rb +3 -3
- data/lib/mongoid/errors/invalid_index.rb +28 -0
- data/lib/mongoid/errors/invalid_options.rb +4 -4
- data/lib/mongoid/errors/invalid_scope.rb +24 -0
- data/lib/mongoid/errors/invalid_set_polymorphic_relation.rb +38 -0
- data/lib/mongoid/errors/invalid_storage_options.rb +27 -0
- data/lib/mongoid/errors/invalid_time.rb +3 -6
- data/lib/mongoid/errors/inverse_not_found.rb +29 -0
- data/lib/mongoid/errors/mixed_relations.rb +4 -9
- data/lib/mongoid/errors/mixed_session_configuration.rb +28 -0
- data/lib/mongoid/errors/mongoid_error.rb +54 -3
- data/lib/mongoid/errors/nested_attributes_metadata_not_found.rb +28 -0
- data/lib/mongoid/errors/no_default_session.rb +23 -0
- data/lib/mongoid/errors/no_environment.rb +3 -3
- data/lib/mongoid/errors/no_map_reduce_output.rb +24 -0
- data/lib/mongoid/errors/no_parent.rb +24 -0
- data/lib/mongoid/errors/no_session_config.rb +22 -0
- data/lib/mongoid/errors/no_session_database.rb +27 -0
- data/lib/mongoid/errors/no_session_hosts.rb +27 -0
- data/lib/mongoid/errors/no_sessions_config.rb +20 -0
- data/lib/mongoid/errors/readonly_attribute.rb +25 -0
- data/lib/mongoid/errors/scope_overwrite.rb +4 -4
- data/lib/mongoid/errors/too_many_nested_attribute_records.rb +4 -4
- data/lib/mongoid/errors/unknown_attribute.rb +25 -0
- data/lib/mongoid/errors/unsaved_document.rb +4 -8
- data/lib/mongoid/errors/unsupported_javascript.rb +27 -0
- data/lib/mongoid/errors/unsupported_version.rb +4 -4
- data/lib/mongoid/errors/validations.rb +7 -6
- data/lib/mongoid/errors/versioning_not_on_root.rb +23 -0
- data/lib/mongoid/extensions.rb +28 -76
- data/lib/mongoid/extensions/array.rb +127 -0
- data/lib/mongoid/extensions/big_decimal.rb +42 -0
- data/lib/mongoid/extensions/boolean.rb +24 -0
- data/lib/mongoid/extensions/date.rb +70 -0
- data/lib/mongoid/extensions/date_time.rb +68 -0
- data/lib/mongoid/extensions/false_class.rb +26 -0
- data/lib/mongoid/extensions/float.rb +44 -0
- data/lib/mongoid/extensions/hash.rb +91 -0
- data/lib/mongoid/extensions/integer.rb +54 -0
- data/lib/mongoid/extensions/module.rb +28 -0
- data/lib/mongoid/extensions/nil_class.rb +21 -0
- data/lib/mongoid/extensions/object.rb +188 -0
- data/lib/mongoid/extensions/object_id.rb +53 -0
- data/lib/mongoid/extensions/range.rb +55 -0
- data/lib/mongoid/extensions/regexp.rb +27 -0
- data/lib/mongoid/extensions/set.rb +55 -0
- data/lib/mongoid/extensions/string.rb +155 -0
- data/lib/mongoid/extensions/symbol.rb +54 -0
- data/lib/mongoid/extensions/time.rb +78 -0
- data/lib/mongoid/extensions/time_with_zone.rb +55 -0
- data/lib/mongoid/extensions/true_class.rb +26 -0
- data/lib/mongoid/factory.rb +1 -1
- data/lib/mongoid/fields.rb +129 -194
- data/lib/mongoid/fields/foreign_key.rb +134 -0
- data/lib/mongoid/fields/localized.rb +73 -0
- data/lib/mongoid/fields/standard.rb +268 -0
- data/lib/mongoid/fields/validators.rb +2 -0
- data/lib/mongoid/fields/validators/macro.rb +83 -0
- data/lib/mongoid/finders.rb +42 -43
- data/lib/mongoid/hierarchy.rb +25 -14
- data/lib/mongoid/identity_map.rb +31 -19
- data/lib/mongoid/indexes.rb +66 -15
- data/lib/mongoid/indexes/validators/options.rb +80 -0
- data/lib/mongoid/inspection.rb +1 -1
- data/lib/mongoid/javascript.rb +1 -1
- data/lib/mongoid/json.rb +2 -2
- data/lib/mongoid/loggable.rb +69 -0
- data/lib/mongoid/matchers.rb +1 -1
- data/lib/mongoid/matchers/all.rb +7 -8
- data/lib/mongoid/matchers/and.rb +3 -3
- data/lib/mongoid/matchers/default.rb +6 -4
- data/lib/mongoid/matchers/exists.rb +2 -2
- data/lib/mongoid/matchers/gt.rb +2 -2
- data/lib/mongoid/matchers/gte.rb +2 -2
- data/lib/mongoid/matchers/in.rb +3 -7
- data/lib/mongoid/matchers/lt.rb +2 -2
- data/lib/mongoid/matchers/lte.rb +2 -2
- data/lib/mongoid/matchers/ne.rb +2 -2
- data/lib/mongoid/matchers/nin.rb +2 -2
- data/lib/mongoid/matchers/or.rb +2 -2
- data/lib/mongoid/matchers/size.rb +2 -2
- data/lib/mongoid/matchers/strategies.rb +3 -3
- data/lib/mongoid/multi_parameter_attributes.rb +8 -10
- data/lib/mongoid/nested_attributes.rb +17 -9
- data/lib/mongoid/observer.rb +1 -2
- data/lib/mongoid/paranoia.rb +13 -18
- data/lib/mongoid/persistence.rb +43 -39
- data/lib/mongoid/persistence/atomic.rb +2 -2
- data/lib/mongoid/persistence/atomic/add_to_set.rb +5 -9
- data/lib/mongoid/persistence/atomic/bit.rb +5 -7
- data/lib/mongoid/persistence/atomic/inc.rb +5 -7
- data/lib/mongoid/persistence/atomic/operation.rb +45 -6
- data/lib/mongoid/persistence/atomic/pop.rb +5 -7
- data/lib/mongoid/persistence/atomic/pull.rb +5 -7
- data/lib/mongoid/persistence/atomic/pull_all.rb +5 -7
- data/lib/mongoid/persistence/atomic/push.rb +4 -10
- data/lib/mongoid/persistence/atomic/push_all.rb +4 -10
- data/lib/mongoid/persistence/atomic/rename.rb +6 -7
- data/lib/mongoid/persistence/atomic/sets.rb +5 -7
- data/lib/mongoid/persistence/atomic/unset.rb +4 -5
- data/lib/mongoid/persistence/deletion.rb +2 -2
- data/lib/mongoid/persistence/insertion.rb +10 -16
- data/lib/mongoid/persistence/modification.rb +5 -9
- data/lib/mongoid/persistence/operations.rb +6 -19
- data/lib/mongoid/persistence/operations/embedded/insert.rb +7 -6
- data/lib/mongoid/persistence/operations/embedded/remove.rb +5 -5
- data/lib/mongoid/persistence/operations/insert.rb +4 -4
- data/lib/mongoid/persistence/operations/remove.rb +4 -4
- data/lib/mongoid/persistence/operations/update.rb +5 -5
- data/lib/mongoid/railtie.rb +26 -11
- data/lib/mongoid/railties/database.rake +22 -108
- data/lib/mongoid/relations.rb +4 -6
- data/lib/mongoid/relations/accessors.rb +119 -19
- data/lib/mongoid/relations/auto_save.rb +59 -5
- data/lib/mongoid/relations/binding.rb +211 -2
- data/lib/mongoid/relations/bindings/embedded/in.rb +16 -22
- data/lib/mongoid/relations/bindings/embedded/many.rb +9 -50
- data/lib/mongoid/relations/bindings/embedded/one.rb +10 -16
- data/lib/mongoid/relations/bindings/referenced/in.rb +31 -57
- data/lib/mongoid/relations/bindings/referenced/many.rb +8 -20
- data/lib/mongoid/relations/bindings/referenced/many_to_many.rb +15 -19
- data/lib/mongoid/relations/bindings/referenced/one.rb +10 -24
- data/lib/mongoid/relations/builder.rb +3 -3
- data/lib/mongoid/relations/builders.rb +19 -16
- data/lib/mongoid/relations/builders/embedded/in.rb +5 -5
- data/lib/mongoid/relations/builders/embedded/many.rb +12 -12
- data/lib/mongoid/relations/builders/embedded/one.rb +6 -6
- data/lib/mongoid/relations/builders/nested_attributes/many.rb +8 -8
- data/lib/mongoid/relations/builders/nested_attributes/one.rb +4 -4
- data/lib/mongoid/relations/builders/referenced/in.rb +4 -4
- data/lib/mongoid/relations/builders/referenced/many.rb +5 -5
- data/lib/mongoid/relations/builders/referenced/many_to_many.rb +7 -5
- data/lib/mongoid/relations/builders/referenced/one.rb +5 -5
- data/lib/mongoid/relations/cascading.rb +6 -4
- data/lib/mongoid/relations/cascading/delete.rb +3 -5
- data/lib/mongoid/relations/cascading/destroy.rb +3 -3
- data/lib/mongoid/relations/cascading/nullify.rb +3 -3
- data/lib/mongoid/relations/cascading/restrict.rb +37 -0
- data/lib/mongoid/relations/constraint.rb +4 -3
- data/lib/mongoid/relations/conversions.rb +5 -6
- data/lib/mongoid/relations/cyclic.rb +7 -7
- data/lib/mongoid/relations/embedded/batchable.rb +346 -0
- data/lib/mongoid/relations/embedded/in.rb +23 -12
- data/lib/mongoid/relations/embedded/many.rb +99 -161
- data/lib/mongoid/relations/embedded/one.rb +25 -14
- data/lib/mongoid/relations/macros.rb +105 -61
- data/lib/mongoid/relations/many.rb +93 -14
- data/lib/mongoid/relations/metadata.rb +200 -45
- data/lib/mongoid/relations/nested_builder.rb +3 -5
- data/lib/mongoid/relations/one.rb +2 -2
- data/lib/mongoid/relations/options.rb +2 -2
- data/lib/mongoid/relations/polymorphic.rb +9 -9
- data/lib/mongoid/relations/proxy.rb +60 -31
- data/lib/mongoid/relations/referenced/in.rb +40 -15
- data/lib/mongoid/relations/referenced/many.rb +117 -132
- data/lib/mongoid/relations/referenced/many_to_many.rb +101 -46
- data/lib/mongoid/relations/referenced/one.rb +34 -13
- data/lib/mongoid/relations/reflections.rb +3 -3
- data/lib/mongoid/relations/synchronization.rb +19 -23
- data/lib/mongoid/relations/targets/enumerable.rb +86 -57
- data/lib/mongoid/reloading.rb +12 -14
- data/lib/mongoid/scoping.rb +329 -0
- data/lib/mongoid/serialization.rb +8 -27
- data/lib/mongoid/sessions.rb +359 -0
- data/lib/mongoid/sessions/factory.rb +106 -0
- data/lib/mongoid/sessions/mongo_uri.rb +93 -0
- data/lib/mongoid/sessions/validators.rb +2 -0
- data/lib/mongoid/sessions/validators/storage.rb +49 -0
- data/lib/mongoid/sharding.rb +6 -6
- data/lib/mongoid/state.rb +6 -7
- data/lib/mongoid/threaded.rb +167 -59
- data/lib/mongoid/threaded/lifecycle.rb +21 -22
- data/lib/mongoid/threaded/sessions.rb +0 -0
- data/lib/mongoid/timestamps.rb +1 -1
- data/lib/mongoid/timestamps/created.rb +8 -4
- data/lib/mongoid/timestamps/timeless.rb +6 -4
- data/lib/mongoid/timestamps/updated.rb +3 -3
- data/lib/mongoid/unit_of_work.rb +61 -0
- data/lib/mongoid/validations.rb +27 -19
- data/lib/mongoid/validations/associated.rb +2 -2
- data/lib/mongoid/validations/format.rb +2 -2
- data/lib/mongoid/validations/presence.rb +31 -5
- data/lib/mongoid/validations/uniqueness.rb +9 -12
- data/lib/mongoid/version.rb +2 -2
- data/lib/mongoid/versioning.rb +25 -26
- data/lib/rack/mongoid/middleware/identity_map.rb +3 -3
- data/lib/rails/generators/mongoid/config/config_generator.rb +1 -1
- data/lib/rails/generators/mongoid/config/templates/mongoid.yml +59 -19
- data/lib/rails/generators/mongoid/model/model_generator.rb +7 -7
- data/lib/rails/generators/mongoid/model/templates/model.rb.tt +2 -2
- data/lib/rails/generators/mongoid/observer/observer_generator.rb +4 -4
- data/lib/rails/generators/mongoid_generator.rb +5 -5
- data/lib/rails/mongoid.rb +69 -25
- metadata +110 -137
- checksums.yaml +0 -7
- data/lib/config/locales/bg.yml +0 -61
- data/lib/config/locales/de.yml +0 -61
- data/lib/config/locales/en-GB.yml +0 -64
- data/lib/config/locales/es.yml +0 -59
- data/lib/config/locales/fr.yml +0 -62
- data/lib/config/locales/hi.yml +0 -53
- data/lib/config/locales/hu.yml +0 -64
- data/lib/config/locales/id.yml +0 -62
- data/lib/config/locales/it.yml +0 -59
- data/lib/config/locales/ja.yml +0 -57
- data/lib/config/locales/kr.yml +0 -54
- data/lib/config/locales/nl.yml +0 -61
- data/lib/config/locales/pl.yml +0 -59
- data/lib/config/locales/pt-BR.yml +0 -60
- data/lib/config/locales/pt.yml +0 -60
- data/lib/config/locales/ro.yml +0 -66
- data/lib/config/locales/ru.yml +0 -61
- data/lib/config/locales/sv.yml +0 -60
- data/lib/config/locales/vi.yml +0 -62
- data/lib/config/locales/zh-CN.yml +0 -53
- data/lib/mongoid/collection.rb +0 -157
- data/lib/mongoid/collections.rb +0 -120
- data/lib/mongoid/collections/master.rb +0 -45
- data/lib/mongoid/collections/operations.rb +0 -44
- data/lib/mongoid/config/database.rb +0 -181
- data/lib/mongoid/config/replset_database.rb +0 -80
- data/lib/mongoid/contexts.rb +0 -25
- data/lib/mongoid/contexts/enumerable.rb +0 -313
- data/lib/mongoid/contexts/enumerable/sort.rb +0 -43
- data/lib/mongoid/contexts/mongo.rb +0 -487
- data/lib/mongoid/criterion/builder.rb +0 -34
- data/lib/mongoid/criterion/complex.rb +0 -84
- data/lib/mongoid/criterion/creational.rb +0 -34
- data/lib/mongoid/criterion/exclusion.rb +0 -110
- data/lib/mongoid/criterion/inclusion.rb +0 -290
- data/lib/mongoid/criterion/optional.rb +0 -259
- data/lib/mongoid/criterion/selector.rb +0 -177
- data/lib/mongoid/cursor.rb +0 -88
- data/lib/mongoid/default_scope.rb +0 -36
- data/lib/mongoid/errors/invalid_type.rb +0 -25
- data/lib/mongoid/extensions/array/deep_copy.rb +0 -25
- data/lib/mongoid/extensions/array/deletion.rb +0 -29
- data/lib/mongoid/extensions/false_class/equality.rb +0 -26
- data/lib/mongoid/extensions/hash/criteria_helpers.rb +0 -47
- data/lib/mongoid/extensions/hash/deep_copy.rb +0 -25
- data/lib/mongoid/extensions/hash/scoping.rb +0 -25
- data/lib/mongoid/extensions/integer/checks.rb +0 -23
- data/lib/mongoid/extensions/nil/collectionization.rb +0 -23
- data/lib/mongoid/extensions/object/checks.rb +0 -29
- data/lib/mongoid/extensions/object/deep_copy.rb +0 -21
- data/lib/mongoid/extensions/object/reflections.rb +0 -48
- data/lib/mongoid/extensions/object/substitutable.rb +0 -15
- data/lib/mongoid/extensions/object/yoda.rb +0 -44
- data/lib/mongoid/extensions/object_id/conversions.rb +0 -60
- data/lib/mongoid/extensions/proc/scoping.rb +0 -25
- data/lib/mongoid/extensions/string/checks.rb +0 -36
- data/lib/mongoid/extensions/string/conversions.rb +0 -22
- data/lib/mongoid/extensions/string/inflections.rb +0 -118
- data/lib/mongoid/extensions/symbol/checks.rb +0 -23
- data/lib/mongoid/extensions/symbol/inflections.rb +0 -67
- data/lib/mongoid/extensions/true_class/equality.rb +0 -26
- data/lib/mongoid/extras.rb +0 -31
- data/lib/mongoid/fields/internal/array.rb +0 -77
- data/lib/mongoid/fields/internal/big_decimal.rb +0 -63
- data/lib/mongoid/fields/internal/bignum.rb +0 -10
- data/lib/mongoid/fields/internal/binary.rb +0 -11
- data/lib/mongoid/fields/internal/boolean.rb +0 -58
- data/lib/mongoid/fields/internal/date.rb +0 -51
- data/lib/mongoid/fields/internal/date_time.rb +0 -28
- data/lib/mongoid/fields/internal/false_class.rb +0 -10
- data/lib/mongoid/fields/internal/fixnum.rb +0 -10
- data/lib/mongoid/fields/internal/float.rb +0 -47
- data/lib/mongoid/fields/internal/foreign_keys/array.rb +0 -88
- data/lib/mongoid/fields/internal/foreign_keys/object.rb +0 -56
- data/lib/mongoid/fields/internal/hash.rb +0 -11
- data/lib/mongoid/fields/internal/integer.rb +0 -59
- data/lib/mongoid/fields/internal/localized.rb +0 -62
- data/lib/mongoid/fields/internal/nil_class.rb +0 -53
- data/lib/mongoid/fields/internal/object.rb +0 -11
- data/lib/mongoid/fields/internal/object_id.rb +0 -46
- data/lib/mongoid/fields/internal/range.rb +0 -61
- data/lib/mongoid/fields/internal/set.rb +0 -57
- data/lib/mongoid/fields/internal/string.rb +0 -42
- data/lib/mongoid/fields/internal/symbol.rb +0 -43
- data/lib/mongoid/fields/internal/time.rb +0 -23
- data/lib/mongoid/fields/internal/time_with_zone.rb +0 -23
- data/lib/mongoid/fields/internal/timekeeping.rb +0 -122
- data/lib/mongoid/fields/internal/true_class.rb +0 -10
- data/lib/mongoid/fields/mappings.rb +0 -42
- data/lib/mongoid/fields/serializable.rb +0 -270
- data/lib/mongoid/identity.rb +0 -92
- data/lib/mongoid/keys.rb +0 -144
- data/lib/mongoid/logger.rb +0 -45
- data/lib/mongoid/multi_database.rb +0 -36
- data/lib/mongoid/named_scope.rb +0 -166
- data/lib/mongoid/relations/embedded/atomic.rb +0 -89
- data/lib/mongoid/relations/embedded/atomic/operation.rb +0 -63
- data/lib/mongoid/relations/embedded/atomic/pull.rb +0 -65
- data/lib/mongoid/relations/embedded/atomic/push_all.rb +0 -59
- data/lib/mongoid/relations/embedded/atomic/set.rb +0 -61
- data/lib/mongoid/relations/embedded/atomic/unset.rb +0 -41
- data/lib/mongoid/relations/referenced/batch.rb +0 -73
- data/lib/mongoid/relations/referenced/batch/insert.rb +0 -57
- data/lib/mongoid/safety.rb +0 -105
- data/lib/mongoid/scope.rb +0 -31
checksums.yaml
DELETED
@@ -1,7 +0,0 @@
|
|
1
|
-
---
|
2
|
-
SHA1:
|
3
|
-
metadata.gz: 24f065d8df0d24d181d0e957e52a161052fab547
|
4
|
-
data.tar.gz: 8e962ff16a835b9b383fe32598eb5de07aa87354
|
5
|
-
SHA512:
|
6
|
-
metadata.gz: 78f88ae8270a5e6cab265888027f0f893e4d6e400346996067177f87dc3df40034fd475a47cc602e4785d873895cf184a1e95a5000df825c7601ae4ddf15532b
|
7
|
-
data.tar.gz: 9e1cedda754906969e14159b748584fc7f4fcbe2728a16e500454f8b788b6073dcc3cc134581f1b4b786e8c264834cb406e2be04624791486173c4db9a13cc28
|
data/lib/config/locales/bg.yml
DELETED
@@ -1,61 +0,0 @@
|
|
1
|
-
bg:
|
2
|
-
mongoid:
|
3
|
-
errors:
|
4
|
-
messages:
|
5
|
-
taken:
|
6
|
-
е вече заето
|
7
|
-
callbacks:
|
8
|
-
"Calling %{method} on %{klass} resulted in a false return from a callback."
|
9
|
-
document_not_found:
|
10
|
-
Не е намерен документ %{klass} с id(та) %{identifiers}.
|
11
|
-
eager_load:
|
12
|
-
"Eager loading :%{name} is not supported due to it being a many-to-many
|
13
|
-
or polymorphic belongs_to relation."
|
14
|
-
invalid_database:
|
15
|
-
Базата данни трябва да е от тип Mnogo:DB, а не %{name}.
|
16
|
-
invalid_time:
|
17
|
-
"'%{value}' is not a valid Time."
|
18
|
-
invalid_type:
|
19
|
-
Полето е дефинирано като a(n) %{klass}, но се присвоява %{other}
|
20
|
-
със стойност %{value}.
|
21
|
-
invalid_options:
|
22
|
-
"Invalid option :%{invalid} provided to relation :%{name}. Valid options
|
23
|
-
are: %{valid}."
|
24
|
-
unsupported_version:
|
25
|
-
MongoDB %{version} не се подържа, моля ползвайте версия след %{mongo_version}.
|
26
|
-
validations:
|
27
|
-
Неуспешна валидация - %{errors} грешки.
|
28
|
-
invalid_collection:
|
29
|
-
Достъпа до колекцията за %{klass} не е разрешена, тъй като
|
30
|
-
тя е вложен документ, можете да я достъпите през главният документ
|
31
|
-
invalid_field:
|
32
|
-
Дефинирането на поле с име %{name} не е разрешено. Не дефинирайте
|
33
|
-
полета, които са в конфликт с Mongoid вътрешните атрибути.
|
34
|
-
Можете да ги видите с Document#instance_methods
|
35
|
-
too_many_nested_attribute_records:
|
36
|
-
Присвояването на вложини атрибути за %{association} е
|
37
|
-
ограничено до %{limit} записа
|
38
|
-
embedded_in_must_have_inverse_of:
|
39
|
-
Опциите на embedded_in асоциацията трябва да съдържат inverse_of.
|
40
|
-
dependent_only_references_one_or_many:
|
41
|
-
Опцията dependent => destroy|delete, която е посочена е
|
42
|
-
валидна само за references_one или references_many връзки
|
43
|
-
association_cant_have_inverse_of:
|
44
|
-
Дефинирането на inverse_of за тази асоциация не е позволено.
|
45
|
-
Използвайте тази опция само за embedded_in или
|
46
|
-
references_many като масив.
|
47
|
-
calling_document_find_with_nil_is_invalid:
|
48
|
-
Извикването на Document#find със nil е невалидно
|
49
|
-
unsaved_document:
|
50
|
-
You cannot call create or create! through a relational association
|
51
|
-
relation (%{document}) who's parent (%{base}) is not already saved.
|
52
|
-
mixed_relations:
|
53
|
-
Referencing a(n) %{embedded} document from the %{root} document via a
|
54
|
-
relational association is not allowed since the %{embedded} is embedded.
|
55
|
-
no_environment:
|
56
|
-
"Mongoid attempted to find the appropriate environment but no Rails.env,
|
57
|
-
Sinatra::Base.environment, or RACK_ENV could be found."
|
58
|
-
scope_overwrite:
|
59
|
-
"Cannot create scope :%{scope_name}, because of existing method
|
60
|
-
%{model_name}.%{scope_name}."
|
61
|
-
blank_on_locale: "can't be blank in %{location}"
|
data/lib/config/locales/de.yml
DELETED
@@ -1,61 +0,0 @@
|
|
1
|
-
de:
|
2
|
-
mongoid:
|
3
|
-
errors:
|
4
|
-
messages:
|
5
|
-
taken:
|
6
|
-
ist bereits vergeben
|
7
|
-
callbacks:
|
8
|
-
"Calling %{method} on %{klass} resulted in a false return from a callback."
|
9
|
-
document_not_found:
|
10
|
-
Dokument für Klasse %{klass} mit ID(s) %{identifiers} nicht gefunden.
|
11
|
-
eager_load:
|
12
|
-
"Eager loading :%{name} is not supported due to it being a many-to-many
|
13
|
-
or polymorphic belongs_to relation."
|
14
|
-
invalid_database:
|
15
|
-
Datenbank sollte eine Mongo::DB sein, nicht %{name}.
|
16
|
-
invalid_time:
|
17
|
-
"'%{value}' ist keine berechtigte Zeit."
|
18
|
-
invalid_type:
|
19
|
-
Feld wurde als a(n) %{klass} definiert, doch der Wert %{value} vom Typ
|
20
|
-
%{other} wurde übergeben.
|
21
|
-
invalid_options:
|
22
|
-
"Invalid option :%{invalid} provided to relation :%{name}. Valid options
|
23
|
-
are: %{valid}."
|
24
|
-
unsupported_version:
|
25
|
-
MongoDB %{version} wird nicht unterstützt, bitte auf Version
|
26
|
-
%{mongo_version} aktualisieren.
|
27
|
-
validations:
|
28
|
-
Validierung fehlgeschlagen - %{errors}.
|
29
|
-
invalid_collection:
|
30
|
-
Zugriff auf die Collection von %{klass} ist nicht erlaubt,
|
31
|
-
da es sich um ein eingebettetes Dokument handelt. Auf die Collection
|
32
|
-
kann vom Wurzeldokument aus zugegriffen werden.
|
33
|
-
invalid_field:
|
34
|
-
Das Feld %{name} kann nicht definiert werden, da sein Name mit
|
35
|
-
einem internen Mongoid-Attribut oder Methodennamen kollidiert.
|
36
|
-
Siehe Document#instance_methods für eine Auflistung dieser Namen.
|
37
|
-
too_many_nested_attribute_records:
|
38
|
-
Verschachtelte Attribute für %{association} sind auf %{limit} Einträge
|
39
|
-
beschränkt.
|
40
|
-
embedded_in_must_have_inverse_of:
|
41
|
-
Die Optionen für eine embedded_in-Beziehung müssen inverse_of beinhalten.
|
42
|
-
dependent_only_references_one_or_many:
|
43
|
-
Die dependent => destroy|delete-Option ist nur für
|
44
|
-
references_one oder references_many-Beziehungen gültig.
|
45
|
-
association_cant_have_inverse_of:
|
46
|
-
Es ist nicht erlaubt, inverse_of für diese Beziehung zu definieren.
|
47
|
-
Diese Option kann nur für embedded_in oder references_many als Array
|
48
|
-
verwendet werden.
|
49
|
-
unsaved_document:
|
50
|
-
You cannot call create or create! through a relational association
|
51
|
-
relation (%{document}) who's parent (%{base}) is not already saved.
|
52
|
-
mixed_relations:
|
53
|
-
Referencing a(n) %{embedded} document from the %{root} document via a
|
54
|
-
relational association is not allowed since the %{embedded} is embedded.
|
55
|
-
no_environment:
|
56
|
-
"Mongoid attempted to find the appropriate environment but no Rails.env,
|
57
|
-
Sinatra::Base.environment, or RACK_ENV could be found."
|
58
|
-
scope_overwrite:
|
59
|
-
"Scope :%{scope_name} kann nicht erzeugt werden, da bereits eine Methode
|
60
|
-
%{model_name}.%{scope_name} existiert."
|
61
|
-
blank_on_locale: "can't be blank in %{location}"
|
@@ -1,64 +0,0 @@
|
|
1
|
-
en-GB:
|
2
|
-
mongoid:
|
3
|
-
errors:
|
4
|
-
messages:
|
5
|
-
blank:
|
6
|
-
can't be blank
|
7
|
-
taken:
|
8
|
-
is already taken
|
9
|
-
callbacks:
|
10
|
-
"Calling %{method} on %{klass} resulted in a false return from a callback."
|
11
|
-
document_not_found:
|
12
|
-
Document not found for class %{klass} with id(s) %{identifiers}.
|
13
|
-
eager_load:
|
14
|
-
"Eager loading :%{name} is not supported due to it being a many-to-many
|
15
|
-
or polymorphic belongs_to relation."
|
16
|
-
invalid_database:
|
17
|
-
"Database should be a Mongo::DB, not %{name}."
|
18
|
-
invalid_options:
|
19
|
-
"Invalid option :%{invalid} provided to relation :%{name}. Valid options
|
20
|
-
are: %{valid}."
|
21
|
-
invalid_time:
|
22
|
-
"'%{value}' is not a valid Time."
|
23
|
-
invalid_type:
|
24
|
-
Field was defined as a(n) %{klass}, but received a %{other} with
|
25
|
-
the value %{value}.
|
26
|
-
unsupported_version:
|
27
|
-
MongoDB %{version} not supported, please upgrade
|
28
|
-
to %{mongo_version}.
|
29
|
-
validations:
|
30
|
-
Validation failed - %{errors}.
|
31
|
-
invalid_collection:
|
32
|
-
Access to the collection for %{klass} is not allowed since it
|
33
|
-
is an embedded document, please access a collection from
|
34
|
-
the root document.
|
35
|
-
invalid_field:
|
36
|
-
Defining a field named %{name} is not allowed. Do not define
|
37
|
-
fields that conflict with Mongoid internal attributes or method
|
38
|
-
names. Use Document#instance_methods to see what names this includes.
|
39
|
-
too_many_nested_attribute_records:
|
40
|
-
Accepting nested attributes for %{association} is limited
|
41
|
-
to %{limit} records.
|
42
|
-
embedded_in_must_have_inverse_of:
|
43
|
-
Options for embedded_in association must include inverse_of.
|
44
|
-
dependent_only_references_one_or_many:
|
45
|
-
The dependent => destroy|delete option that was supplied
|
46
|
-
is only valid on references_one or references_many associations.
|
47
|
-
association_cant_have_inverse_of:
|
48
|
-
Defining an inverse_of on this association is not allowed. Only
|
49
|
-
use this option on embedded_in or references_many as array.
|
50
|
-
calling_document_find_with_nil_is_invalid:
|
51
|
-
Calling Document#find with nil is invalid
|
52
|
-
unsaved_document:
|
53
|
-
"You cannot call create or create! through a relational association
|
54
|
-
relation (%{document}) who's parent (%{base}) is not already saved."
|
55
|
-
mixed_relations:
|
56
|
-
Referencing a(n) %{embedded} document from the %{root} document via a
|
57
|
-
relational association is not allowed since the %{embedded} is embedded.
|
58
|
-
no_environment:
|
59
|
-
"Mongoid attempted to find the appropriate environment but no Rails.env,
|
60
|
-
Sinatra::Base.environment, or RACK_ENV could be found."
|
61
|
-
scope_overwrite:
|
62
|
-
"Cannot create scope :%{scope_name}, because of existing method
|
63
|
-
%{model_name}.%{scope_name}."
|
64
|
-
blank_on_locale: "can't be blank in %{location}"
|
data/lib/config/locales/es.yml
DELETED
@@ -1,59 +0,0 @@
|
|
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
|
-
eager_load:
|
10
|
-
"Eager loading :%{name} is not supported due to it being a many-to-many
|
11
|
-
or polymorphic belongs_to relation."
|
12
|
-
invalid_database:
|
13
|
-
La base de datos debería ser una instancia de Mongo::DB, en lugar de %{name}.
|
14
|
-
invalid_time:
|
15
|
-
"'%{value}' is not a valid Time."
|
16
|
-
invalid_type:
|
17
|
-
El campo se definió como %{klass}, pero recibió una instancia de %{other}
|
18
|
-
con el valor %{value}.
|
19
|
-
invalid_options:
|
20
|
-
"Invalid option :%{invalid} provided to relation :%{name}. Valid options
|
21
|
-
are: %{valid}."
|
22
|
-
unsupported_version:
|
23
|
-
MongoDB %{version} no está soportada, por favor actualize a
|
24
|
-
%{mongo_version}.
|
25
|
-
validations:
|
26
|
-
La validación falló - %{errors}.
|
27
|
-
invalid_collection:
|
28
|
-
El acceso a la colección %{klass} no está permitido, ya que
|
29
|
-
es un documento incrustado, por favor acceda a la colección
|
30
|
-
desde el documento raíz.
|
31
|
-
invalid_field:
|
32
|
-
No está permitido definir un campo con el nombre %{name}. No
|
33
|
-
defina campos que entren en conflicto con los atributos internos o
|
34
|
-
nombres de métodos de Mongoid. Utilice Document#instance_methods para
|
35
|
-
consultar los nombres ya incluidos.
|
36
|
-
too_many_nested_attribute_records:
|
37
|
-
La aceptación de atributos anidados para %{association} está limitada
|
38
|
-
a %{limit} registros.
|
39
|
-
embedded_in_must_have_inverse_of:
|
40
|
-
Las opciones de una asociación embedded_in deben incluir inverse_of.
|
41
|
-
dependent_only_references_one_or_many:
|
42
|
-
La opción dependent => destroy|delete proporcionada
|
43
|
-
sólo es válida en asociaciones references_one o references_many.
|
44
|
-
association_cant_have_inverse_of:
|
45
|
-
No está permitido definir inverse_of en esta asociación. Utilice
|
46
|
-
esta opción sólo en embedded_in o en references_many as array.
|
47
|
-
unsaved_document:
|
48
|
-
You cannot call create or create! through a relational association
|
49
|
-
relation (%{document}) who's parent (%{base}) is not already saved.
|
50
|
-
mixed_relations:
|
51
|
-
Referencing a(n) %{embedded} document from the %{root} document via a
|
52
|
-
relational association is not allowed since the %{embedded} is embedded.
|
53
|
-
no_environment:
|
54
|
-
"Mongoid attempted to find the appropriate environment but no Rails.env,
|
55
|
-
Sinatra::Base.environment, or RACK_ENV could be found."
|
56
|
-
scope_overwrite:
|
57
|
-
"Cannot create scope :%{scope_name}, because of existing method
|
58
|
-
%{model_name}.%{scope_name}."
|
59
|
-
blank_on_locale: "can't be blank in %{location}"
|
data/lib/config/locales/fr.yml
DELETED
@@ -1,62 +0,0 @@
|
|
1
|
-
fr:
|
2
|
-
mongoid:
|
3
|
-
errors:
|
4
|
-
messages:
|
5
|
-
taken:
|
6
|
-
est déjà pris.
|
7
|
-
callbacks:
|
8
|
-
"Calling %{method} on %{klass} resulted in a false return from a callback."
|
9
|
-
document_not_found:
|
10
|
-
Document introuvable pour la classe %{klass} avec les ids %{identifiers}.
|
11
|
-
eager_load:
|
12
|
-
"Eager loading :%{name} is not supported due to it being a many-to-many
|
13
|
-
or polymorphic belongs_to relation."
|
14
|
-
invalid_time:
|
15
|
-
"'%{value}' is not a valid Time."
|
16
|
-
invalid_database:
|
17
|
-
La base de données doit être une Mongo::DB, pas %{name}.
|
18
|
-
invalid_type:
|
19
|
-
Le champ a été défini comme un(e) %{klass} mais a reçu un(e)
|
20
|
-
%{other} avec la valeur %{value}.
|
21
|
-
invalid_options:
|
22
|
-
"Invalid option :%{invalid} provided to relation :%{name}. Valid options
|
23
|
-
are: %{valid}."
|
24
|
-
unsupported_version:
|
25
|
-
"MongoDB %{version} n'est pas supporté, veuillez mettre à jour avec
|
26
|
-
%{mongo_version}"
|
27
|
-
validations:
|
28
|
-
La validation a échouée - %{errors}.
|
29
|
-
invalid_collection:
|
30
|
-
"L'accès à la collection pour %{klass} n'est pas autorisé puisque
|
31
|
-
ce n'est pas un document embarqué, veuillez accéder à la collection
|
32
|
-
depuis le document racine."
|
33
|
-
invalid_field:
|
34
|
-
"Définir un champ appellé %{name} n'est pas autorisé. Veuillez ne
|
35
|
-
pas définir de champs en conflit avec les attributs internes de
|
36
|
-
Mongoid ou des noms de méthodes. Utilisez Document#instance_methods
|
37
|
-
pour consulter la liste des noms."
|
38
|
-
too_many_nested_attribute_records:
|
39
|
-
"Le nombre d'attributs imbriqués pour %{association} est limité à
|
40
|
-
%{limit} enregistrements."
|
41
|
-
embedded_in_must_have_inverse_of:
|
42
|
-
Les options pour les associations embedded_in doivent inclure
|
43
|
-
inverse_of.
|
44
|
-
dependent_only_references_one_or_many:
|
45
|
-
"L'option dependent => destroy|delete fournie est seulement valide
|
46
|
-
pour les associations references_on ou references_many."
|
47
|
-
association_cant_have_inverse_of:
|
48
|
-
"Definir un inverse_of pour cette association n'est pas autorisé.
|
49
|
-
Utilisez cette option seulement sur embedded_in ou references_many."
|
50
|
-
unsaved_document:
|
51
|
-
You cannot call create or create! through a relational association
|
52
|
-
relation (%{document}) who's parent (%{base}) is not already saved.
|
53
|
-
mixed_relations:
|
54
|
-
Referencing a(n) %{embedded} document from the %{root} document via a
|
55
|
-
relational association is not allowed since the %{embedded} is embedded.
|
56
|
-
no_environment:
|
57
|
-
"Mongoid attempted to find the appropriate environment but no Rails.env,
|
58
|
-
Sinatra::Base.environment, or RACK_ENV could be found."
|
59
|
-
scope_overwrite:
|
60
|
-
"Cannot create scope :%{scope_name}, because of existing method
|
61
|
-
%{model_name}.%{scope_name}."
|
62
|
-
blank_on_locale: "can't be blank in %{location}"
|
data/lib/config/locales/hi.yml
DELETED
@@ -1,53 +0,0 @@
|
|
1
|
-
en:
|
2
|
-
mongoid:
|
3
|
-
errors:
|
4
|
-
messages:
|
5
|
-
taken:
|
6
|
-
"पहले ही ले लिया है"
|
7
|
-
callbacks:
|
8
|
-
"Calling %{method} on %{klass} resulted in a false return from a callback."
|
9
|
-
document_not_found:
|
10
|
-
"%{identifiers} id(s) के साथ, वर्ग %{klass} के लिए दस्तावेज़ नहीं मिला."
|
11
|
-
eager_load:
|
12
|
-
"Eager loading :%{name} is not supported due to it being a many-to-many
|
13
|
-
or polymorphic belongs_to relation."
|
14
|
-
invalid_time:
|
15
|
-
"'%{value}' is not a valid Time."
|
16
|
-
invalid_database:
|
17
|
-
"डेटाबेस Mongo::DB होना चाहिए, %{name} नहीं."
|
18
|
-
invalid_options:
|
19
|
-
"Invalid option :%{invalid} provided to relation :%{name}. Valid options
|
20
|
-
are: %{valid}."
|
21
|
-
invalid_type:
|
22
|
-
"फील्ड a(n) %{klass} के रूप में परिभाषित किया गया था. लेकिन %{value} मूल्य के साथ एक %{other} प्राप्त किया."
|
23
|
-
unsupported_version:
|
24
|
-
"MongoDB %{version} समर्थित नहीं है, कृपया %{mongo_version} से उन्नयन."
|
25
|
-
validations:
|
26
|
-
"सत्यापन विफल - %{errors}."
|
27
|
-
invalid_collection:
|
28
|
-
"%{klass} के लिए संग्रह करने के लिए प्रवेश के बाद से यह एक एम्बेडेड दस्तावेज़ की अनुमति नहीं है, जड़ दस्तावेज़ से एक संग्रह का उपयोग करें."
|
29
|
-
invalid_field:
|
30
|
-
"एक %{name} के नाम क्षेत्र परिभाषित की अनुमति नहीं है. फ़ील्ड परिभाषित नहीं है कि Mongoid आंतरिक गुण या विधि नाम के साथ संघर्ष. दस्तावेज़ का उपयोग करें.#instance_methods."
|
31
|
-
too_many_nested_attribute_records:
|
32
|
-
"%{assosiation} लिए स्वीकारना नेस्टेड विशेषताएँ %{limit} रिकॉर्ड करने के लिए सीमित है."
|
33
|
-
embedded_in_must_have_inverse_of:
|
34
|
-
"embedded_in संघ के लिए विकल्प inverse_of शामिल करना चाहिए."
|
35
|
-
dependent_only_references_one_or_many:
|
36
|
-
"dependent => destroy|delete विकल्प है कि आपूर्ति की गई थी references_one या references_many संघों पर ही मान्य है."
|
37
|
-
association_cant_have_inverse_of:
|
38
|
-
"इस सहयोग पर एक inverse_of परिभाषित की अनुमति नहीं है.केवल embedded_in या सरणी के रूप में references_many पर इस विकल्प का उपयोग करें."
|
39
|
-
calling_document_find_with_nil_is_invalid:
|
40
|
-
"दस्तावेज़ को बुला रहा है"
|
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."
|
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."
|
47
|
-
no_environment:
|
48
|
-
"Mongoid attempted to find the appropriate environment but no Rails.env,
|
49
|
-
Sinatra::Base.environment, or RACK_ENV could be found."
|
50
|
-
scope_overwrite:
|
51
|
-
"Cannot create scope :%{scope_name}, because of existing method
|
52
|
-
%{model_name}.%{scope_name}."
|
53
|
-
blank_on_locale: "can't be blank in %{location}"
|
data/lib/config/locales/hu.yml
DELETED
@@ -1,64 +0,0 @@
|
|
1
|
-
hu:
|
2
|
-
mongoid:
|
3
|
-
errors:
|
4
|
-
messages:
|
5
|
-
taken:
|
6
|
-
már foglalt
|
7
|
-
callbacks:
|
8
|
-
"Calling %{method} on %{klass} resulted in a false return from a callback."
|
9
|
-
document_not_found:
|
10
|
-
"%{klass} osztályban, %{identifiers} id(k)-el nem található dokumentum."
|
11
|
-
eager_load:
|
12
|
-
"Eager loading :%{name} is not supported due to it being a many-to-many
|
13
|
-
or polymorphic belongs_to relation."
|
14
|
-
invalid_time:
|
15
|
-
"'%{value}' is not a valid Time."
|
16
|
-
invalid_database:
|
17
|
-
Az adatbázisnak Mongo::DB-nek kellene lennie, nem %{name}.
|
18
|
-
invalid_type:
|
19
|
-
A mező %{klass} -ként volt meghatározva, de a kapott érték %{value}
|
20
|
-
egy %{other}.
|
21
|
-
invalid_options:
|
22
|
-
"Invalid option :%{invalid} provided to relation :%{name}. Valid options
|
23
|
-
are: %{valid}."
|
24
|
-
unsupported_version:
|
25
|
-
MongoDB %{version} nem támogatott, kérjük frissítsen
|
26
|
-
a %{mongo_version} verzióra.
|
27
|
-
validations:
|
28
|
-
Érvénytelen - %{errors}.
|
29
|
-
invalid_collection:
|
30
|
-
"%{klass} osztálybeli kollekcióhoz való hozzáférés nem engedélyezett,
|
31
|
-
mivel egy beágyazott dokumentum. A kollekció a gyökér dokumentumból
|
32
|
-
érhető el."
|
33
|
-
invalid_field:
|
34
|
-
"%{name} mező név nem engedélyezett, mivel a Mongoid által használt
|
35
|
-
belső tulajdonság vagy eljárás névvel eggyezik. Használja a
|
36
|
-
Document#instance_methods parancsot ezen nevek lekérdezéséhez."
|
37
|
-
too_many_nested_attribute_records:
|
38
|
-
"%{association} esetében a beágyazott tulajdonságok %{limit} számú
|
39
|
-
bejegyzésre elfogadhatóak."
|
40
|
-
embedded_in_must_have_inverse_of:
|
41
|
-
Az embedded_in tipusú kapcsolat esetében kötelező az inverse_of
|
42
|
-
opció használata.
|
43
|
-
dependent_only_references_one_or_many:
|
44
|
-
A dependent => destroy|delete opció csak a references_one vagy
|
45
|
-
references_many kapcsolatok esetében érvényes.
|
46
|
-
association_cant_have_inverse_of:
|
47
|
-
Ezen a tipusú kapcsolaton az inverse_of opció érvénytelen, csak
|
48
|
-
az embedded_in vagy references_many as array tipusú kapcsolatok
|
49
|
-
esetében használható.
|
50
|
-
calling_document_find_with_nil_is_invalid:
|
51
|
-
Document#find parancs nil érték esetében érvénytelen.
|
52
|
-
unsaved_document:
|
53
|
-
You cannot call create or create! through a relational association
|
54
|
-
relation (%{document}) who's parent (%{base}) is not already saved.
|
55
|
-
mixed_relations:
|
56
|
-
Referencing a(n) %{embedded} document from the %{root} document via a
|
57
|
-
relational association is not allowed since the %{embedded} is embedded.
|
58
|
-
no_environment:
|
59
|
-
"Mongoid attempted to find the appropriate environment but no Rails.env,
|
60
|
-
Sinatra::Base.environment, or RACK_ENV could be found."
|
61
|
-
scope_overwrite:
|
62
|
-
"Cannot create scope :%{scope_name}, because of existing method
|
63
|
-
%{model_name}.%{scope_name}."
|
64
|
-
blank_on_locale: "can't be blank in %{location}"
|
data/lib/config/locales/id.yml
DELETED
@@ -1,62 +0,0 @@
|
|
1
|
-
id:
|
2
|
-
mongoid:
|
3
|
-
errors:
|
4
|
-
messages:
|
5
|
-
taken:
|
6
|
-
telah digunakan
|
7
|
-
callbacks:
|
8
|
-
"Memanggil %{method} dalam %{klass} me-return false return dari salah satu callback."
|
9
|
-
document_not_found:
|
10
|
-
Dokumen tidak ditemukan untuk kelas %{klass} dengan id %{identifiers}.
|
11
|
-
eager_load:
|
12
|
-
"Eager loading : %{name} is tidak di-support karena merupakan relasi many-to-many
|
13
|
-
atau polymorphic belongs_to."
|
14
|
-
invalid_time:
|
15
|
-
"'%{value}' bukan merupakan Time yang valid."
|
16
|
-
invalid_database:
|
17
|
-
Database harus Mongo::DB, bukan %{name}.
|
18
|
-
invalid_type:
|
19
|
-
Field didefinisikan sebagai %{klass}, tetapi menerima %{other} dengan
|
20
|
-
value %{value}.
|
21
|
-
invalid_options:
|
22
|
-
"Opsi invalid : %{invalid} untuk relasi : %{name}. Opsi yang valid adalah : %{valid}."
|
23
|
-
unsupported_version:
|
24
|
-
MongoDB %{version} tidak di support, silakan upgrade
|
25
|
-
ke %{mongo_version}.
|
26
|
-
validations:
|
27
|
-
Validasi gagal - %{errors}.
|
28
|
-
invalid_collection:
|
29
|
-
Akses terhadap koleksi %{klass} tidak diperbolehkan karena merupakan
|
30
|
-
embedded document, silakan akses dokumen melalui root document.
|
31
|
-
invalid_field:
|
32
|
-
Mendefinisikan field dengan nama %{name} tidak diperbolehkan. Jangan
|
33
|
-
mendefinisikan field yang konflik dengan nama atribut atau method
|
34
|
-
internal Mongoid. Gunakan Document#instance_methods untuk melihat nama
|
35
|
-
yang termasuk.
|
36
|
-
too_many_nested_attribute_records:
|
37
|
-
Penerimaan nested attribut untuk %{association} dibatasi %{limit}
|
38
|
-
record.
|
39
|
-
embedded_in_must_have_inverse_of:
|
40
|
-
Opsi untuk asosiasi embedded_in harus memiliki inverse_of.
|
41
|
-
dependent_only_references_one_or_many:
|
42
|
-
Opsi dependent => destroy|delete yang diberikan hanya valid untuk
|
43
|
-
asosiasi references_one atau references_many.
|
44
|
-
association_cant_have_inverse_of:
|
45
|
-
Mendefinisikan inverse_of pada asosiasi ini tidak diperbolehkan. Hanya
|
46
|
-
gunakan opsi ini pada embedded_in atau references_many sebagai array.
|
47
|
-
calling_document_find_with_nil_is_invalid:
|
48
|
-
Memanggil Document#find dengan nil adalah tidak valid
|
49
|
-
unsaved_document:
|
50
|
-
Anda tidak dapat memanggil create atau create! melalui asosiasi
|
51
|
-
relational (%{document}) yang parent-nya (%{base}) belum disimpan.
|
52
|
-
mixed_relations:
|
53
|
-
Mereferensi sebuah %{embedded} document dari %{root} dokumen melalui
|
54
|
-
asosiasi relasional tidak diperbolehkan karena %{embedded}
|
55
|
-
adalah dokumen embedded.
|
56
|
-
no_environment:
|
57
|
-
"Mongoid attempted to find the appropriate environment but no Rails.env,
|
58
|
-
Sinatra::Base.environment, or RACK_ENV could be found."
|
59
|
-
scope_overwrite:
|
60
|
-
"Cannot create scope :%{scope_name}, because of existing method
|
61
|
-
%{model_name}.%{scope_name}."
|
62
|
-
blank_on_locale: "can't be blank in %{location}"
|