このコミットが含まれているのは:
2026-07-12 02:22:36 +09:00
コミット 155edfe018
4個のファイルの変更67行の追加10行の削除
+2 -2
ファイルの表示
@@ -86,11 +86,11 @@ class PostImportRunner
end
def normalise_row row
unless row.is_a?(Hash) || row.is_a?(ActionController::Parameters)
unless row.is_a?(Hash)
raise ArgumentError, '取込行の形式が不正です.'
end
normalised = row.to_h.deep_transform_keys { _1.to_s.underscore }
normalised = row.deep_transform_keys { _1.to_s.underscore }
source_row = Integer(normalised['source_row'], exception: false)
raise ArgumentError, '元行番号が不正です.' if source_row.nil? || source_row <= 0