acts_as_simple_translatable 0.2.0 → 0.2.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
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4dba2355c4532dc855d363f70646553df100516e1fb58ba19e18e85ede8aaf21
|
4
|
+
data.tar.gz: 8f7b5ad7c517f01ad51a400581ad249d94eee52a7ab2ed6388678d26c4fb4ab3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e0dfdd46079185af399244f997909cd13fb1ee72f398e34561a93dc1689b1455a5bb5797576a5616a2e1244364c71617fc8f40f38380384acc863bd4794778ec
|
7
|
+
data.tar.gz: f11c1cbb5bdab55a03309645db56cdaad711299a59910bb592779042b3a786f0dd33f6a92c24026fe03af85dbe671833e328c76976a1d6026f0a9b8cebde47fa
|
@@ -15,7 +15,7 @@ module ActsAsSimpleTranslatable
|
|
15
15
|
fields.each do |field|
|
16
16
|
define_method "#{field}" do
|
17
17
|
content = (I18n.locale == I18n.default_locale) ? super() : locale_translations[field]
|
18
|
-
content.present? ? content : super
|
18
|
+
content.present? ? content : super()
|
19
19
|
end
|
20
20
|
|
21
21
|
define_method "#{field}_original" do
|