global

def file_field_show(object, attribute)

def file_field_show(object, attribute)
  o = object.send(attribute)
  msg = o.to_s
  if o.send(:present?)
    msg = "replace | <a href='#{o.send(:url)}'>#{o.send(:path).gsub(/^.*\//,'')}</a>".html_safe
  end
    link_to_inline_edit object, attribute, msg, from_callee: __callee__
end