Explorar el Código

add agent appy function

abiao hace 4 años
padre
commit
2b979f0255
Se han modificado 1 ficheros con 1 adiciones y 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