Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Locales are symbols.

  • Loading branch information...
commit c24934fb4c29ce13de36f22494a1f4607d3c44d2 1 parent f07e4b4
Francesc Esplugas authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/extensions/active_record.rb
4 lib/extensions/active_record.rb
View
@@ -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"
#
Please sign in to comment.
Something went wrong with that request. Please try again.