mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-26 15:56:21 +00:00
fix: crear las licencias después de crear el título
y los commits también se harían en el idioma de le usuarie
This commit is contained in:
parent
a587ed76c1
commit
401c80ba80
1 changed files with 4 additions and 6 deletions
|
@ -14,10 +14,9 @@ SiteService = Struct.new(:site, :usuarie, :params, keyword_init: true) do
|
|||
I18n.with_locale(usuarie&.lang&.to_sym || I18n.default_locale) do
|
||||
site.save &&
|
||||
site.config.write &&
|
||||
commit_config(action: :create)
|
||||
end
|
||||
|
||||
commit_config(action: :create) &&
|
||||
add_licencias
|
||||
end
|
||||
|
||||
site
|
||||
end
|
||||
|
@ -27,10 +26,9 @@ SiteService = Struct.new(:site, :usuarie, :params, keyword_init: true) do
|
|||
I18n.with_locale(usuarie&.lang&.to_sym || I18n.default_locale) do
|
||||
site.update(params) &&
|
||||
site.config.write &&
|
||||
commit_config(action: :update)
|
||||
end
|
||||
|
||||
commit_config(action: :update) &&
|
||||
change_licencias
|
||||
end
|
||||
|
||||
site
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue