t9n 0.1.0 → 0.2.0

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.
@@ -122,7 +122,7 @@ module Perfectline
122
122
  when Symbol then
123
123
  translate(locale, default, options)
124
124
  when Array then
125
- default.map{ |obj| default(locale, obj, key, options.dup) }.compact!.first
125
+ default.map{ |obj| default(locale, obj, key, options.dup) }.compact.first
126
126
  else
127
127
  # set default to false to avoid endless recursion
128
128
  unless I18n.default_locale?(locale)
@@ -30,7 +30,7 @@ module Perfectline
30
30
  named_scope :translated, :conditions => "value IS NOT NULL AND value != ''"
31
31
  named_scope :orphans, :conditions => "translatable_id IS NULL"
32
32
 
33
- named_scope :locale, lambda{ |locale| {:conditions => {:locale => locale}} }
33
+ named_scope :locale, lambda{ |locale| {:conditions => {:locale => locale.to_s}} }
34
34
  named_scope :for, lambda{ |object| {:conditions => {:translatable_id => object.id, :translatable_type => object.class.name}} }
35
35
  end
36
36
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: t9n
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tanel Suurhans
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2010-01-29 00:00:00 +02:00
13
+ date: 2010-02-03 00:00:00 +02:00
14
14
  default_executable:
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
@@ -55,7 +55,7 @@ files:
55
55
  - lib/tasks/t9n.rake
56
56
  - rails/init.rb
57
57
  has_rdoc: true
58
- homepage: http://perfectline.co.uk
58
+ homepage: http://www.perfectline.co.uk
59
59
  licenses: []
60
60
 
61
61
  post_install_message: