From d0632b2e4ce6301f7811c3399a3f4ad2f8acca7c Mon Sep 17 00:00:00 2001 From: "Matthew K. Fu JuYuan" Date: Tue, 3 Jul 2012 16:05:19 +0800 Subject: [PATCH] change name format --- app/models/user/user.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/user/user.rb b/app/models/user/user.rb index 4f820c16..46dc1040 100644 --- a/app/models/user/user.rb +++ b/app/models/user/user.rb @@ -72,7 +72,7 @@ class User if info first_name = get_attribute_values.detect {|value| value.key.to_s.eql?('first_name') }[I18n.locale.to_s] rescue nil last_name = get_attribute_values.detect {|value| value.key.to_s.eql?('last_name') }[I18n.locale.to_s] rescue nil - return "#{first_name} #{last_name}" + return "#{last_name} #{first_name}" else return nil end