r18n-rails-api 0.4.2 → 0.4.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/r18n-rails-api/backend.rb +3 -3
  2. metadata +3 -3
@@ -39,9 +39,7 @@ module R18n
39
39
 
40
40
  result = lookup(scope, key, separator, params)
41
41
 
42
- if result.translated?
43
- result
44
- else
42
+ if result.is_a? Untranslated
45
43
  options = options.reject { |key, value| key == :default }
46
44
 
47
45
  Array(default).each do |entry|
@@ -54,6 +52,8 @@ module R18n
54
52
  end
55
53
 
56
54
  raise ::I18n::MissingTranslationData.new(locale, key, options)
55
+ else
56
+ result
57
57
  end
58
58
  end
59
59
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: r18n-rails-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.2
4
+ version: 0.4.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrey "A.I." Sitnik
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2010-02-19 00:00:00 +03:00
12
+ date: 2010-02-26 00:00:00 +03:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -20,7 +20,7 @@ dependencies:
20
20
  requirements:
21
21
  - - "="
22
22
  - !ruby/object:Gem::Version
23
- version: 0.4.2
23
+ version: 0.4.3
24
24
  version:
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: i18n