Display only selected columns

The code below is from my user model which have a FK called
extension_id.
The visible_columns array are used to display all columns (that should
be visible) and their values.

What should I do to get the ‘extension.address’ column to work?

@@visible_columns = [‘username’, ‘first_name’, ‘last_name’,
‘extension.address’, ‘department’, ‘title’]

def self.visible_columns
visible_columns = self.content_columns
visible_columns.delete_if {|item|
@@visible_columns.include?(item.name) == false}
visible_columns
end