Rails 4: ActiveRecord-style I18n on a non-ActiveRecord object?

Viewed 471

I have a Plain Old Ruby Class (PORO) that behaves a lot like an ActiveRecord model, although it is not persisted to the database.

To make the internationalization(I18n) as painlessly as possible, I would like to also use the SomeModel.model_name.human and SomeModel.human_attribute_name(:attribute) methods on this PORO.

What module do I need to include to include above methods on my PORO?

1 Answers
Related