Module: Rosetta::Translated
Defined Under Namespace
Instance Method Summary collapse
Instance Method Details
#content_in(locale) ⇒ Object
43 44 45 |
# File 'lib/rosetta/translated.rb', line 43 def content_in(locale) public_send("content_#{locale.code}") end |
#reload ⇒ Object
51 52 53 |
# File 'lib/rosetta/translated.rb', line 51 def reload(*) super.tap { @translation_changes = nil } end |
#translation_changes ⇒ Object
47 48 49 |
# File 'lib/rosetta/translated.rb', line 47 def translation_changes @translation_changes ||= {} end |