Module: Padrino::Contrib::Orm::ActiveRecord::Translate
- Defined in:
- lib/padrino-contrib/orm/active_record/translate.rb
Overview
This is an extension for ActiveRecord where if I had:
post.description_ru = "I'm Russian"
post.description_en = "I'm English"
post.description_it = "I'm Italian"
with this extension if I had set:
I18n.locale = :it
calling directly:
post.description
will be a shortcut for:
post.description_it => "I'm Italian"
Defined Under Namespace
Modules: ClassMethods, InstanceMethods