Module: Trek::Translatable
- Extended by:
- ActiveSupport::Concern
- Defined in:
- app/models/concerns/trek/translatable.rb
Overview
‘Translatable` provides a way to translate model attributes. It’s currently an abstraction layer over the Mobility gem.
Usage:
class Page < ApplicationRecord
include Trek::Translatable
translate_attributes :title, :description
end
Refer to Mobility’s documentation for more information: github.com/shioyama/mobility