Merge pull request #947 from ThibG/glitch-soc/merge-upstream

Merge upstream changes
This commit is contained in:
ThibG
2019-03-08 20:43:51 +01:00
committed by GitHub
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: '' }