Commit b2b0e950dc0335552b7a66e56544fcbcc7b1d37e

Authored by JoenioCosta
1 parent 6741d167

ActionItem380: delete PersonInfo

git-svn-id: https://svn.colivre.coop.br/svn/noosfero/trunk@1804 3f533792-8f58-4932-b0fe-aaf55b0a4547
Showing 1 changed file with 0 additions and 18 deletions   Show diff stats
app/models/person_info.rb
@@ -1,18 +0,0 @@ @@ -1,18 +0,0 @@
1 -class PersonInfo < ActiveRecord::Base  
2 -  
3 - belongs_to :person  
4 -  
5 - xss_terminate :only => [ :name ]  
6 -  
7 - def summary  
8 - ['name', 'contact_information', 'sex', 'birth_date', 'address', 'city', 'state', 'country'].map do |col|  
9 - [ PersonInfo.columns_hash[col] && PersonInfo.columns_hash[col].human_name, self.send(col) ]  
10 - end  
11 - end  
12 -  
13 - def age  
14 - a = Date.today.year - birth_date.year  
15 - Date.today.yday >= birth_date.yday ? a : a-1  
16 - end  
17 -  
18 -end