Skip to content

Instantly share code, notes, and snippets.

@nicolasblanco
Created August 24, 2017 19:18
Show Gist options
  • Save nicolasblanco/54d8dc829ce6618663ac90bdf55367d1 to your computer and use it in GitHub Desktop.
Save nicolasblanco/54d8dc829ce6618663ac90bdf55367d1 to your computer and use it in GitHub Desktop.
p = Product.new
p.name_translations = {"en" => "My great product", "fr" => "Mon super produit"}
p.name_translations["en"]
#=> "My great product"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment