mirror of
https://github.com/discourse/discourse.git
synced 2025-01-30 15:35:15 +08:00
Follow-up for a8cdd685
to fix nested array
This commit is contained in:
parent
a8cdd68518
commit
89efcfcf28
|
@ -5,7 +5,7 @@ class MigrateAutoClosePosts < ActiveRecord::Migration[4.2]
|
||||||
I18n.overrides_disabled do
|
I18n.overrides_disabled do
|
||||||
strings = []
|
strings = []
|
||||||
%w(days hours lastpost_days lastpost_hours lastpost_minutes).map do |k|
|
%w(days hours lastpost_days lastpost_hours lastpost_minutes).map do |k|
|
||||||
strings << I18n.t("topic_statuses.autoclosed_enabled_#{k}").values.map { |s| s.sub("%{count}", "\\d+") }
|
strings += I18n.t("topic_statuses.autoclosed_enabled_#{k}").values.map { |s| s.sub("%{count}", "\\d+") }
|
||||||
end
|
end
|
||||||
|
|
||||||
sql = <<~SQL
|
sql = <<~SQL
|
||||||
|
|
Loading…
Reference in New Issue
Block a user