global

def image_field_show(object, attribute)

def image_field_show(object, attribute)
  o = object.send(attribute)
  msg = "<i class='fi-plus'></i>".html_safe
  if o.send(:present?)
    if o.respond_to? :palm
      msg = image_tag(o.send(:palm).send(:url))
    else
      msg = image_tag(o.send(:url))
    end
  end
  link_to_inline_edit object, attribute, msg, from_callee: __callee__
end