class ActiveAdmin::Views::AttributesTable

def find_attr_value(attr)

def find_attr_value(attr)
  if attr.is_a?(Proc)
    attr.call(@record)
  elsif attr.to_s[/\A(.+)_id\z/] && @record.respond_to?($1.to_sym)
    @record.send($1.to_sym)
  else
    @record.send(attr.to_sym)
  end
end