Follow-up for a8cdd685 to fix nested array

This commit is contained in:
Gerhard Schlager 2019-07-22 22:30:57 +02:00
parent a8cdd68518
commit 89efcfcf28
1 changed files with 1 additions and 1 deletions

View File

@ -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