Sha256: d7f02f345d9f12c8c6b2b1155003057e978d25062c98e4b093c0bc2ad8595b9a
Contents?: true
Size: 684 Bytes
Versions: 14
Compression:
Stored size: 684 Bytes
Contents
class PeakFlowUtils::TranslationValue < PeakFlowUtils::ApplicationRecord belongs_to :translation_key validates :translation_key, presence: true delegate :key, to: :translation_key def calculated_translation_file_path "#{handler_translation.dir}/#{locale}.yml" if handler_translation end def handler_translation @handler_translation ||= PeakFlowUtils::HandlerText .find_by(translation_key_id: translation_key_id) end def migrate_to_awesome_translations_namespace! PeakFlowUtils::TranslationMigrator.new( translation_key: translation_key, handler_translation: handler_translation, translation_value: self ).execute end end
Version data entries
14 entries across 14 versions & 1 rubygems