去掉姓和名之间的空格

This commit is contained in:
cxt 2016-07-29 20:24:04 +08:00
parent b3d34d6e0f
commit d0f83aab64
1 changed files with 3 additions and 3 deletions

View File

@ -42,12 +42,12 @@ class User < Principal
# Different ways of displaying/sorting users
USER_FORMATS = {
:firstname_lastname => {
:string => '#{firstname} #{lastname}',
:string => '#{firstname}#{lastname}',
:order => %w(firstname lastname id),
:setting_order => 1
},
:firstname_lastinitial => {
:string => '#{firstname} #{lastname.to_s.chars.first}.',
:string => '#{firstname}#{lastname.to_s.chars.first}.',
:order => %w(firstname lastname id),
:setting_order => 2
},
@ -57,7 +57,7 @@ class User < Principal
:setting_order => 3
},
:lastname_firstname => {
:string => '#{lastname} #{firstname}',
:string => '#{lastname}#{firstname}',
:order => %w(lastname firstname id),
:setting_order => 4
},