mongoid_translate 0.1.1 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/mongoid/translate.rb +1 -1
- data/lib/mongoid/translate/slug.rb +1 -1
- data/lib/mongoid/translate/version.rb +1 -1
- metadata +21 -17
data/lib/mongoid/translate.rb
CHANGED
@@ -18,7 +18,7 @@ module Mongoid
|
|
18
18
|
embeds_many :translations, class_name: class_name
|
19
19
|
delegate :translated_fields, to: "self.class"
|
20
20
|
accepts_nested_attributes_for :translations
|
21
|
-
index 'translations.language'
|
21
|
+
index 'translations.language' => 1
|
22
22
|
end
|
23
23
|
|
24
24
|
# Return list of existing languages
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mongoid_translate
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 1.0.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -10,11 +10,11 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2012-
|
13
|
+
date: 2012-10-17 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: activesupport
|
17
|
-
requirement:
|
17
|
+
requirement: !ruby/object:Gem::Requirement
|
18
18
|
none: false
|
19
19
|
requirements:
|
20
20
|
- - ~>
|
@@ -22,32 +22,31 @@ dependencies:
|
|
22
22
|
version: '3.1'
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
|
-
version_requirements:
|
25
|
+
version_requirements: !ruby/object:Gem::Requirement
|
26
|
+
none: false
|
27
|
+
requirements:
|
28
|
+
- - ~>
|
29
|
+
- !ruby/object:Gem::Version
|
30
|
+
version: '3.1'
|
26
31
|
- !ruby/object:Gem::Dependency
|
27
32
|
name: mongoid
|
28
|
-
requirement:
|
33
|
+
requirement: !ruby/object:Gem::Requirement
|
29
34
|
none: false
|
30
35
|
requirements:
|
31
36
|
- - ~>
|
32
37
|
- !ruby/object:Gem::Version
|
33
|
-
version: '
|
38
|
+
version: '3.0'
|
34
39
|
type: :runtime
|
35
40
|
prerelease: false
|
36
|
-
version_requirements:
|
37
|
-
- !ruby/object:Gem::Dependency
|
38
|
-
name: bson_ext
|
39
|
-
requirement: &9998880 !ruby/object:Gem::Requirement
|
41
|
+
version_requirements: !ruby/object:Gem::Requirement
|
40
42
|
none: false
|
41
43
|
requirements:
|
42
44
|
- - ~>
|
43
45
|
- !ruby/object:Gem::Version
|
44
|
-
version: '
|
45
|
-
type: :runtime
|
46
|
-
prerelease: false
|
47
|
-
version_requirements: *9998880
|
46
|
+
version: '3.0'
|
48
47
|
- !ruby/object:Gem::Dependency
|
49
48
|
name: rspec
|
50
|
-
requirement:
|
49
|
+
requirement: !ruby/object:Gem::Requirement
|
51
50
|
none: false
|
52
51
|
requirements:
|
53
52
|
- - ~>
|
@@ -55,7 +54,12 @@ dependencies:
|
|
55
54
|
version: '2.6'
|
56
55
|
type: :development
|
57
56
|
prerelease: false
|
58
|
-
version_requirements:
|
57
|
+
version_requirements: !ruby/object:Gem::Requirement
|
58
|
+
none: false
|
59
|
+
requirements:
|
60
|
+
- - ~>
|
61
|
+
- !ruby/object:Gem::Version
|
62
|
+
version: '2.6'
|
59
63
|
description: Translate mongoid models.
|
60
64
|
email: jboyer@af83.com
|
61
65
|
executables: []
|
@@ -90,7 +94,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
90
94
|
version: '0'
|
91
95
|
requirements: []
|
92
96
|
rubyforge_project:
|
93
|
-
rubygems_version: 1.8.
|
97
|
+
rubygems_version: 1.8.24
|
94
98
|
signing_key:
|
95
99
|
specification_version: 3
|
96
100
|
summary: Translate mongoid models.
|