small model change
This commit is contained in:
parent
ea3db22306
commit
bc5795b052
1 changed files with 1 additions and 1 deletions
|
@ -162,7 +162,7 @@ class User < ActiveRecord::Base
|
||||||
# then this can be removed
|
# then this can be removed
|
||||||
def display
|
def display
|
||||||
# would be sensible to match ApplicationController#show_user
|
# would be sensible to match ApplicationController#show_user
|
||||||
FoodsoftConfig[:use_nick] ? nick : "#{first_name} #{last_name}"
|
FoodsoftConfig[:use_nick] ? nick : name
|
||||||
end
|
end
|
||||||
|
|
||||||
def token_attributes
|
def token_attributes
|
||||||
|
|
Loading…
Reference in a new issue