app/models/users/user.rb
# Returns a user type such as Student, Standard Users(uw staff and faulty), Exteranl Users(non-uw users)
Returns a user type such as Student, Standard Users(uw staff and faulty), Exteranl Users(non-uw users)
Returns a user type such as Student Standard Users ( uw staff and faulty ) Exteranl Users ( non - uw users )
def user_type
    if self.class.name == "PubcookieUser"
      type = self.identity_type == "Student" ? self.identity_type : "UW Standard user"
    else
      type = "External user"
    end
    type
  end
def user_type if self . class . name == "PubcookieUser" type = self . identity_type == "Student" ? self . identity_type : "UW Standard user" else type = "External user" end type end
Returns a user type such as Student, Standard Users(uw staff and faulty), Exteranl Users(non-uw users)
Returns a user type such as Student Standard Users ( uw staff and faulty ) Exteranl Users ( non - uw users )