```ruby
User.class_eval do
  attr_accessible :system, :inmate_number

  def new(params)
    Rails.logger.debug('in new')
    super
  end


  def inmate_number
    if actor and actor.profile
      actor.profile.inmate_number
    end
  end

  def inmate_number=(number)
    unless actor.profile
      actor.create_profile
    end
    actor.profile.inmate_number = number
  end

  def system
    if actor and actor.profile
      actor.profile.system
    end
  end

  def system=(system)
    unless actor.profile
      actor.create_profile
    end
    actor.profile.system = system
  end
end
```

Set username / email on server side
user
```ruby
User.class_eval do
  attr_accessible :system, :inmate_number

  def self.new(params)
    if params['name'] == 'Temp'
      # XXX: pull this from the table
      params['name'] = 'A new name for this user'
    end
    if params['email'] == 'temp@justcamehome.info'
      params['email'] = "#{SecureRandom.hex(20)}@justcamehome.info"
    end
    super
  end


  def inmate_number
    if actor and actor.profile
      actor.profile.inmate_number
    end
  end

  def inmate_number=(number)
    unless actor.profile
      actor.create_profile
    end
    actor.profile.inmate_number = number
  end

  def system
    if actor and actor.profile
      actor.profile.system
    end
  end

  def system=(system)
    unless actor.profile
      actor.create_profile
    end
    actor.profile.system = system
  end
end
```
assistant