acts_as_simple_translatable 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4dd8a81a10b89fe9af1bf585695715ee31e2fd2b
|
4
|
+
data.tar.gz: 0a2f1257e077ec8d6711bf23b774d03cfe44bb08
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 69007efc1671533b446a7974c656b73368e0a77f09a5a4d0e9231f373390b57850edd71c102ff79a745742de6bb7cadf717852915f41bd683e611d7f9bc97df6
|
7
|
+
data.tar.gz: 5c326e6ac9aa30b536a6140abf9785e063a7d5f42810f12adcac6377864686956e0c8bc14098e2aff270f1e20f73194dcc80f9723796a39feda1311093fe9f52
|
@@ -15,7 +15,7 @@ module ActsAsSimpleTranslatable
|
|
15
15
|
fields.each do |field|
|
16
16
|
define_method "#{field}" do |default_message = 'NO TRANSLATION'|
|
17
17
|
content = (I18n.locale == I18n.default_locale) ? super() : locale_translations[field]
|
18
|
-
content.present? ? content : default_message
|
18
|
+
content.present? || (I18n.locale == I18n.default_locale) ? content : default_message
|
19
19
|
end
|
20
20
|
|
21
21
|
define_method "#{field}_original" do
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: acts_as_simple_translatable
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Stjepan Hadjic
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-07-
|
11
|
+
date: 2015-07-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -83,4 +83,3 @@ signing_key:
|
|
83
83
|
specification_version: 4
|
84
84
|
summary: acts as simple translatable
|
85
85
|
test_files: []
|
86
|
-
has_rdoc:
|