class UserDecorator < ApplicationDecorator
  def full_name
    if object.first_name.present?
      "#{object.first_name} #{object.last_name}"
    else
      "Anonymous"
    end
  end

  def general_info
    "#{object.company_name}: #{full_name}"
  end

  def confirmation_status
    " (Pending)" unless object.confirmed?
  end

  def full_name_with_status
    "#{full_name}#{confirmation_status}"
  end

  def company
    company_name.presence || 'N/A'
  end

  def role
    object.role.humanize
  end
end

class UserDecorator < ApplicationDecorator
  def full_name
    if object.first_name.present?
      "#{object.first_name} #{object.last_name}"
    else
      "Anonymous"
    end
  end

  def general_info
    "#{object.company_name}: #{full_name}"
  end

  def confirmation_status
    " (Pending)" unless object.confirmed?
  end

  def full_name_with_status
    "#{full_name}#{confirmation_status}"
  end

  def company
    company_name.presence || 'N/A'
  end

  def role
    object.role.to_s.humanize
  end
end

Fix admin user roles humanize string
Fix admin user roles humanize string
