lib/html_helpers.rb
# Check if we have permission to do an edit
Check if we have permission to do an edit
Check if we have permission to do an edit
def permission_a_editable(have_permit, id, prefix, data_url, v,placeholder)
    if have_permit
      a_editable(id,prefix,data_url,v,placeholder)
    else
      v.to_s
    end
  end
def permission_a_editable ( have_permit , id , prefix , data_url , v , placeholder ) if have_permit a_editable ( id , prefix , data_url , v , placeholder ) else v . to_s end end
Check if we have permission to do an edit
Check if we have permission to do an edit
have_permit
id
prefix
data_url
v
placeholder