global

def pdf_link_show(object, attribute)

def pdf_link_show(object, attribute)
  # the attribute is the action
  "#{link_to 'preview', "/#{attribute}/#{object.id}", :class => "pdf_preview"} #{link_to 'pdf', "/#{attribute}/#{object.id}.pdf", :class => "pdf_open"}".html_safe
end