Module: IsTranslatable::ActiveRecordExtension
- Defined in:
- lib/is_translatable.rb
Instance Method Summary collapse
Instance Method Details
#translatable(*kinds) ⇒ Object
6 7 8 9 10 11 12 |
# File 'lib/is_translatable.rb', line 6 def translatable(*kinds) class_attribute :translatable_kinds self.translatable_kinds ||= {} self.translatable_kinds = kinds.map(&:to_s) include IsTranslatable::Methods end |