Add admin stats page

This commit is contained in:
differentreality 2013-07-12 12:30:31 +03:00
parent 8286c8130d
commit a71a16922c
7 changed files with 240 additions and 0 deletions

View file

@ -19,6 +19,9 @@ class Person < ActiveRecord::Base
:styles => {:tiny => "16x16>", :small => "32x32>", :large => "128x128>"},
:default_url => "person_:style.png"
validates_attachment_content_type :avatar, :content_type => [/jpg/, /jpeg/, /png/, /gif/]
alias_attribute :affiliation, :company
def to_s
if self.public_name.empty?
self.first_name + " " + self.last_name