air18n 0.4.10 → 0.4.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -59,13 +59,13 @@ module Air18n
59
59
  -pt.locale.to_s.size
60
60
  end
61
61
  translations_with_language_last.each do |pt|
62
- PhraseTranslation.create(
63
- :user_id => 0, # 0 means Automated
64
- :phrase => self,
65
- :key => self.key,
66
- :locale => pt.locale,
67
- :value => pt.value
68
- )
62
+ copy = PhraseTranslation.new
63
+ copy.user_id = 0 # 0 means Automated
64
+ copy.phrase = self
65
+ copy.key = self.key
66
+ copy.locale = pt.locale
67
+ copy.value = pt.value
68
+ copy.save
69
69
  end
70
70
  end
71
71
  end
@@ -1,3 +1,3 @@
1
1
  module Air18n
2
- VERSION = "0.4.10"
2
+ VERSION = "0.4.11"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: air18n
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.10
4
+ version: 0.4.11
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ authors:
13
13
  autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
- date: 2013-05-22 00:00:00.000000000 Z
16
+ date: 2013-05-30 00:00:00.000000000 Z
17
17
  dependencies:
18
18
  - !ruby/object:Gem::Dependency
19
19
  name: i18n