A lot :)
Some checks failed
/ Run tests (push) Successful in 8m56s
/ Run system tests (push) Failing after 1h0m48s
/ Build, push and deploy image (push) Successful in 7m47s

This commit is contained in:
david 2024-09-05 22:54:38 +02:00
parent aad67af0d1
commit 63fc206c27
153 changed files with 2043 additions and 646 deletions

View file

@ -2,4 +2,17 @@
class ApplicationRecord < ActiveRecord::Base
primary_abstract_class
class << self
def translates_attributes(*attributes)
attributes.each do |attribute|
define_method("t_#{attribute}") do
lang = I18n.locale.to_s.split("-").first
send("#{attribute}_#{lang}")
end
end
end
alias_method :translates_attribute, :translates_attributes
end
end