Skip to content

Commit

Permalink
extend Localized fields examples for better reproduce
Browse files Browse the repository at this point in the history
  • Loading branch information
timoschilling committed May 17, 2013
1 parent 2b04ad3 commit d4afb64
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions source/en/mongoid/docs/documents.haml
Original file line number Diff line number Diff line change
Expand Up @@ -521,7 +521,7 @@

:coderay
#!ruby
# Using a default locale of en.
I18n.default_locale = :en
product = Product.new
product.description = "Marvelous!"
I18n.locale = :de
Expand Down Expand Up @@ -570,7 +570,8 @@

:coderay
#!ruby
# Using a default locale of en.
I18n.default_locale = :en
I18n.fallbacks = true
::I18n.fallbacks[:de] = [ :de, :en, :es ]
product = Product.new
product.description = "Marvelous!"
Expand Down

0 comments on commit d4afb64

Please sign in to comment.