Sha256: 34f4bf0a99c8f7b2c1d5f99f0cef8b1cb6f86d18196e54fcad424fd5c755f53e
Contents?: true
Size: 635 Bytes
Versions: 6
Compression:
Stored size: 635 Bytes
Contents
class AwesomeTranslations::CacheDatabaseGenerator::TranslationKey < BazaModels::Model belongs_to :group, foreign_key: "group_id" belongs_to :handler, foreign_key: "handler_id" has_many :handler_translations, dependent: :destroy, foreign_key: "translation_key_id", class_name: "AwesomeTranslations::CacheDatabaseGenerator::HandlerTranslation" has_many :translation_values, dependent: :destroy, foreign_key: "translation_key_id", class_name: "AwesomeTranslations::CacheDatabaseGenerator::TranslationValue" validates_presence_of :group, :handler def last_key key.to_s.split(".").last end end
Version data entries
6 entries across 6 versions & 1 rubygems