public
Created

  • Download Gist
sigh.txt
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36
(rdb:2) translations.keys
[:"en-us", :"de-ch", :en, :fi, :"en-gb"]
(rdb:2) translations[:fi]
nil
(rdb:2) translations[:en]
{:invitation_mailer=>{:rejection_notification=>{:description=>"%{name} has rejected your invitation! You can reply to this email if\nyou'd like to contact them. They can still confirm later if they want.\nThey will still rece ... you the the point }
(rdb:2)
 
translations.keys
(rdb:2) [:"en-us", :"de-ch", :en, :fi, :"en-gb"]
translations.delete(:"en-us")
translations.delete(:"de-ch")
translations.delete(:en)
translations.delete(:"en-gb")
 
(rdb:2) translations.keys
[:fi]
(rdb:2) translations[translations.keys.first]
# a ton of finnish
(rdb:2) translations.keys[:fi]
nil
 
(rdb:2) translations.keys
[:fi, :"en-gb", :en, :"en-us", :"de-ch"]
(rdb:2) translations.keys.first == :fi # HMMMM. Highly suspect <------------ WTF!
false
(rdb:2) translations.keys.first
:fi
(rdb:2) translations.keys[2] == :en
true
(rdb:2) translations[:en]
# a ton of english
(rdb:2) translations[:fi]
# nil
(rdb:2) translations[translations.keys.first]
# a ton of finnish

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.