mirror of
https://github.com/discourse/discourse.git
synced 2025-01-18 14:42:46 +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
|
||||
strings = []
|
||||
%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
|
||||
|
||||
sql = <<~SQL
|
||||
|
|
Loading…
Reference in New Issue
Block a user