Add IRC nick to the Person page

This commit is contained in:
Matt Barringer 2013-02-11 18:10:43 +01:00
parent 93b7d17e23
commit 4b0887e0f3
3 changed files with 10 additions and 8 deletions

View file

@ -1,5 +1,5 @@
class Person < ActiveRecord::Base
attr_accessible :email, :first_name, :last_name, :public_name, :biography, :company, :avatar
attr_accessible :email, :first_name, :last_name, :public_name, :biography, :company, :avatar, :irc_nickname
has_many :event_people, :dependent => :destroy
has_many :events, :through => :event_people, :uniq => true