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: 24dd027cefed20ed03d6ef4ba55f81cc02badf71b879af51d14bc1cf63d691e2
4
- data.tar.gz: 6986095069f2fee0d5703a1725f5850469ef2c7f599189d2e0be9c7d8ed9d448
3
+ metadata.gz: 4dba2355c4532dc855d363f70646553df100516e1fb58ba19e18e85ede8aaf21
4
+ data.tar.gz: 8f7b5ad7c517f01ad51a400581ad249d94eee52a7ab2ed6388678d26c4fb4ab3
5
5
  SHA512:
6
- metadata.gz: 2656e18382f315a1f8f16cfec24400207c14dfaf035aa8e602e31394ce0e02b6987192cd6364fba1e91fc25cdc83b9f41d9b5ea7675f99ff92b8d89a89b7c6a6
7
- data.tar.gz: a3ef7d1b4dbb2f7107af078a793c41db6b6285686957f6bb148d30ec9224b047216d4e19a4b3384feafbc0bde87aaad2051f631ef11f9d6b031c4d69635dc466
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
@@ -1,3 +1,3 @@
1
1
  module ActsAsSimpleTranslatable
2
- VERSION = '0.2.0'
2
+ VERSION = '0.2.1'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: acts_as_simple_translatable
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stjepan Hadjic