Merge branch 'master' into glitch-soc/merge-upstream

This commit is contained in:
Thibaut Girka
2019-03-08 20:15:57 +01:00
5 changed files with 27 additions and 16 deletions

View File

@ -268,6 +268,7 @@ class Account < ApplicationRecord
return if fields.size >= MAX_FIELDS
tmp = self[:fields] || []
tmp = [] if tmp.is_a?(Hash)
(MAX_FIELDS - tmp.size).times do
tmp << { name: '', value: '' }