Skip to content

Instantly share code, notes, and snippets.

@tpendragon
Created January 10, 2013 21:13
Show Gist options
  • Save tpendragon/4505845 to your computer and use it in GitHub Desktop.
Save tpendragon/4505845 to your computer and use it in GitHub Desktop.
def content
translatedContent = self[:content]
if(!self.has_translation?(I18n.locale) && self.has_translation?(self.parent_translation(I18n.locale)))
translatedContent = self.translation_for(self.parent_translation(I18n.locale)).content
end
translatedContent
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment