Sha256: 76d1c3615769ad995b7b4ff373fc09b01c272a6fe8ecc368ec191026a86329e3
Contents?: true
Size: 380 Bytes
Versions: 2
Compression:
Stored size: 380 Bytes
Contents
module Rosetta class Translation < ApplicationRecord belongs_to :target_locale, class_name: "Rosetta::Locale" belongs_to :from, class_name: "Rosetta::TextEntry" belongs_to :to, class_name: "Rosetta::TextEntry" after_destroy_commit :purge_orphaned_text_entries_later private def purge_orphaned_text_entries_later to.purge_later end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rosetta-rails-0.2.1 | app/models/rosetta/translation.rb |
rosetta-rails-0.2.0 | app/models/rosetta/translation.rb |