lolita-translation 0.7.2 → 0.7.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +1 -1
- data/README.md +3 -0
- data/lib/lolita-translation/record.rb +1 -0
- data/lib/lolita-translation/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 82d4dfe1c5fbf9846029e38c41e8651c8152d81c
|
4
|
+
data.tar.gz: d0474e27688f2fe3360ae616e7b511e2f150811a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3babc9b1de2e3c6efbf8f685cd6ee649a24f2394fb1119b1f075dbdc44bf9421bd67685b6c0c158fe1facfa4e374f211cf2a5de0dcdaac07f39d94aedff56683
|
7
|
+
data.tar.gz: e7405f2d718d9dc9fa4a349c0da8ee23ab877133eee78354c0a2de5df5c30bf59cd7f4b744f59107b11a3d50bf2e9b26512cc1d97a27a6ca198ec4c548de99ff
|
data/Gemfile
CHANGED
data/README.md
CHANGED
@@ -32,6 +32,9 @@ Translations table holds only translations, but not the original data from defau
|
|
32
32
|
a.title
|
33
33
|
#=> "Title in LV"
|
34
34
|
|
35
|
+
a.in(:lv).title #returns record's title attribute in locale that's passed
|
36
|
+
#=> "Title in LV"
|
37
|
+
|
35
38
|
When a "find" is executed and current language is not the same as default language then `:translations` are added to `:includes` to pre fetch all translations.
|
36
39
|
|
37
40
|
The `ModelNameTranslation` class is created for you automaticly with all validations for ranslated fields. Of course you can create it manualy for custom vlidations and other.
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lolita-translation
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.7.
|
4
|
+
version: 0.7.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- ITHouse (Latvia) and Arturs Meisters
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-
|
11
|
+
date: 2013-12-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: lolita
|
@@ -123,7 +123,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
123
123
|
version: '0'
|
124
124
|
requirements: []
|
125
125
|
rubyforge_project:
|
126
|
-
rubygems_version: 2.
|
126
|
+
rubygems_version: 2.1.9
|
127
127
|
signing_key:
|
128
128
|
specification_version: 4
|
129
129
|
summary: Lolita extension that add multilanguate support to Lolita.
|