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: fc2edabeeef11fc661d785b3f3b02f4415188102
4
- data.tar.gz: d7ee7d21b707caff96c9f9ad2ce1a8039ce9821d
3
+ metadata.gz: 4dd8a81a10b89fe9af1bf585695715ee31e2fd2b
4
+ data.tar.gz: 0a2f1257e077ec8d6711bf23b774d03cfe44bb08
5
5
  SHA512:
6
- metadata.gz: cd80ac0e02184eaf932af60455864a25fef46f79f5083a9e1c2cd827ced7dd37cbdc9286aff019933283944326f4e1de4a8cc491e795e6c6608cd10ab972055d
7
- data.tar.gz: f2f6c18c88d352eb9529a1f909ee869915a0b647ab403cbce180a4bbc9aac35ed33f59964a0d859cc78518b6734ef3d91c64cd5012cd77ee8415d4bdbda351c5
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
@@ -1,3 +1,3 @@
1
1
  module ActsAsSimpleTranslatable
2
- VERSION = '0.1.0'
2
+ VERSION = '0.1.1'
3
3
  end
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.0
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-07 00:00:00.000000000 Z
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: