# File app/models/person.rb, line 56 def self.flattributes_for_list self.columns.map do |col| name = col.name if name =~ /^(.*)_id$/ attr_for_name = "#{$1}_name" name = attr_for_name if self.instance_methods.include? attr_for_name end name end end