small model change

This commit is contained in:
wvengen 2013-10-02 23:29:21 +02:00
parent ea3db22306
commit bc5795b052

View file

@ -162,7 +162,7 @@ class User < ActiveRecord::Base
# then this can be removed
def display
# would be sensible to match ApplicationController#show_user
FoodsoftConfig[:use_nick] ? nick : "#{first_name} #{last_name}"
FoodsoftConfig[:use_nick] ? nick : name
end
def token_attributes