Browse files

Locales are symbols.

  • Loading branch information...
1 parent f07e4b4 commit c24934fb4c29ce13de36f22494a1f4607d3c44d2 Francesc Esplugas committed Feb 13, 2010
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/extensions/active_record.rb
View
4 lib/extensions/active_record.rb
@@ -25,8 +25,8 @@ def to_dom(*args)
# => "published"
# >> Post.find(:first).mapping(:status)
# => "Published"
- # >> I18n.locale = "es"
- # => "es"
+ # >> I18n.locale = :es
+ # => :es
# >> Post.find(:first).mapping(:status)
# => "Publicado"
#

0 comments on commit c24934f

Please sign in to comment.