Explorar o código

add agent appy function

abiao %!s(int64=4) %!d(string=hai) anos
pai
achega
2b979f0255
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      app/models/agent_apply.rb

+ 1 - 1
app/models/agent_apply.rb

@@ -10,7 +10,7 @@ class AgentApply < ActiveRecord::Base
   def com_user
     linkUser = WxUser.where("id = ?", self.com_user_id).first
     if !linkUser.blank?
-        return linkUser.NickName
+        return linkUser.nickname
     else
       return "--"
     end