mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +00:00
Merge pull request #3562 from hennevogel/bugfix/3557
Validate length of User.affiliation
This commit is contained in:
commit
d27c881555
1 changed files with 1 additions and 0 deletions
|
|
@ -101,6 +101,7 @@ class User < ApplicationRecord
|
||||||
presence: true
|
presence: true
|
||||||
|
|
||||||
validate :biography_limit
|
validate :biography_limit
|
||||||
|
validates :affiliation, length: { maximum: 150 }
|
||||||
|
|
||||||
DISTRIBUTION_COLORS = {
|
DISTRIBUTION_COLORS = {
|
||||||
'Active' => 'green',
|
'Active' => 'green',
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue