diff --git a/app/models/person_info.rb b/app/models/person_info.rb deleted file mode 100644 index 437def3..0000000 --- a/app/models/person_info.rb +++ /dev/null @@ -1,18 +0,0 @@ -class PersonInfo < ActiveRecord::Base - - belongs_to :person - - xss_terminate :only => [ :name ] - - def summary - ['name', 'contact_information', 'sex', 'birth_date', 'address', 'city', 'state', 'country'].map do |col| - [ PersonInfo.columns_hash[col] && PersonInfo.columns_hash[col].human_name, self.send(col) ] - end - end - - def age - a = Date.today.year - birth_date.year - Date.today.yday >= birth_date.yday ? a : a-1 - end - -end -- libgit2 0.21.2