Make budgets translatable

This commit is contained in:
Julian Herrero
2019-01-19 15:49:18 +01:00
parent 2eb2839ab0
commit d76782f150
11 changed files with 129 additions and 16 deletions

View File

@@ -8,6 +8,10 @@ module Globalizable
def locales_not_marked_for_destruction
translations.reject(&:_destroy).map(&:locale)
end
def assign_model_to_translations
translations.each { |translation| translation.globalized_model = self }
end
end
class_methods do