```ruby
class Person < ActiveRecord::Base
  include Common::Core::Person
  include Common::Core::Ca::Person
  include RecordsAttributeUpdatedAt
  load_mappings

  has_many :people
  has_many :attributes_updated_ats
  has_many :staff_assignments
  has_many :staff_campuses, :through => :staff_assignments, :class_name => "Campus", :source => :campus
  has_many :staffs
  has_many :users, :through => :access, :conditions => "viewer_isActive = 1"

  def viewers
    users
  end

  def viewer
    viewers[0]
  end

  #belongs_to :viewer, :foreign_key => :user_id

  def campus_abbrev(o = {})
    self.campus(o) ? self.campus(o).abbrv : ''
  end
  
  def campus_name(o = {})
    self.campus(o) ? self.campus(o).name : ''
  end

  def name
    self.full_name
  end

  def person
    self
  end

  def staff
    staffs.first
  end
end
```

Revert "filter users by active flag"
user
```ruby
class Person < ActiveRecord::Base
  include Common::Core::Person
  include Common::Core::Ca::Person
  include RecordsAttributeUpdatedAt
  load_mappings

  has_many :people
  has_many :attributes_updated_ats
  has_many :staff_assignments
  has_many :staff_campuses, :through => :staff_assignments, :class_name => "Campus", :source => :campus
  has_many :staffs

  def viewers
    users
  end

  def viewer
    viewers[0]
  end

  #belongs_to :viewer, :foreign_key => :user_id

  def campus_abbrev(o = {})
    self.campus(o) ? self.campus(o).abbrv : ''
  end
  
  def campus_name(o = {})
    self.campus(o) ? self.campus(o).name : ''
  end

  def name
    self.full_name
  end

  def person
    self
  end

  def staff
    staffs.first
  end
end
```
assistant