This commit is contained in:
John Bintz 2013-01-17 11:08:52 -05:00
parent 5cda866980
commit fea104d73f

View File

@ -20,11 +20,15 @@ class FileFieldInput < Formtastic::Inputs::FileInput
end
def existing_file_info
if @url = builder.object.send(method).url
preview << remove_checkbox << url_display
else
''
result = ''
if source = builder.object.send(method)
if @url = source.url
result = preview << remove_checkbox << url_display
end
end
result
end
def div_wrapper