Skip to content

Instantly share code, notes, and snippets.

@tdelam
Created August 14, 2012 20:57
Show Gist options
  • Save tdelam/3352973 to your computer and use it in GitHub Desktop.
Save tdelam/3352973 to your computer and use it in GitHub Desktop.
1.9.3p194 :004 > Refinery::Page.find('contact-us').translations
Refinery::Page Load (0.3ms) SELECT "refinery_pages".* FROM "refinery_pages" WHERE "refinery_pages"."slug" = 'contact-us' LIMIT 1
Refinery::Page::Translation Load (0.2ms) SELECT "refinery_page_translations".* FROM "refinery_page_translations" WHERE "refinery_page_translations"."refinery_page_id" = 10
=> [#<Refinery::Page::Translation id: 16, refinery_page_id: 10, locale: "en", title: "Contact Us", custom_slug: nil, menu_title: "Contact Us", slug: "contact-us", created_at: "2012-08-14 17:25:36", updated_at: "2012-08-14 20:37:47">]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment