globalize-automatic 0.0.6 → 0.0.7

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: fb2bdc07b52a065892fbf2fe1a62944680b84877
4
- data.tar.gz: e55cdbdc3711ab995ceff3342fad836d3641cc7d
3
+ metadata.gz: 1b5f88643e3a9f0e294da50bd44985b2a53eacf7
4
+ data.tar.gz: 4d5fe443cb3ac353fee710ca5c95a19f5e9543b4
5
5
  SHA512:
6
- metadata.gz: 4a399b52c75a2faa0d4c3a29d3419273d8eba650763441833cf16014859607110a580f99e6dade457d5c7daf49a05869fb96e5613d7df5187faa080b32abadf7
7
- data.tar.gz: 540c9061ddba4f91e0280c2acd64eaab33a00c94f1e389d4ff31c7fa3fc4c358680dbc2e1a0c43d1ab52aefc082d0d2df2e70b1dfd6833c6eb64d74fec615b81
6
+ metadata.gz: 6507f98df54cb7c6334bc29c339c756df23f26b903fc14eb002ea03ec92f815248462336bfdedcdc12f87209294eebcde451484991d36c2774915478023f0949
7
+ data.tar.gz: e8422202f3193aed4b0a057bbbd891c4c63f1fa8e555139b915c484fbdf9c3a6889856c7599288a0d82f9c42071f7dd28ae5ea156050eff815958fec001742cf
@@ -22,8 +22,8 @@ class Globalize::Automatic::Translation < ActiveRecord::Base
22
22
  def translate(attr_name)
23
23
  if automatically_for?(attr_name)
24
24
  Globalize::Automatic.asynchronously ?
25
- Globalize::Automatic::TranslationJob.perform_later(self, attr_name) :
26
- Globalize::Automatic::TranslationJob.perform_now(self, attr_name)
25
+ Globalize::Automatic::TranslationJob.perform_later(self, attr_name.to_s) :
26
+ Globalize::Automatic::TranslationJob.perform_now(self, attr_name.to_s)
27
27
  end
28
28
  end
29
29
 
@@ -3,6 +3,7 @@
3
3
  class Globalize::Automatic::Translator
4
4
 
5
5
  def run(automatic_translation, attr_name)
6
+ attr_name = attr_name.to_sym
6
7
  translation = automatic_translation.translation_from(attr_name)
7
8
  text = translation[attr_name]
8
9
  from = translation.locale
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Globalize
4
4
  module Automatic
5
- VERSION = '0.0.6'
5
+ VERSION = '0.0.7'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: globalize-automatic
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yuichi Takeuchi