arv_coll.rm "."+p
end
- if @object.update_attributes manifest_text: arv_coll.manifest_text
+ if @object.update manifest_text: arv_coll.manifest_text
show
else
self.render_error status: 422
else
arv_coll.rename "./"+file_path, new_file_path
- if @object.update_attributes manifest_text: arv_coll.manifest_text
+ if @object.update manifest_text: arv_coll.manifest_text
show
else
self.render_error status: 422
uri.path += 't=' + opts[:path_token] + '/'
end
uri.path += '_/'
- uri.path += URI.escape(file) if file
+ uri.path += ERB::Util.url_encode(file).gsub('%2F', '/') if file
query = Hash[URI.decode_www_form(uri.query || '')]
{ query_token: 'api_token',