:only_path => false is the default option

This commit is contained in:
Karel Picman 2015-11-04 10:04:21 +01:00
parent ca5e633113
commit 94da341f9f

View File

@ -4,5 +4,5 @@ api.dmsf_file do
api.project_id @file.project_id api.project_id @file.project_id
api.dmsf_folder_id @file.folder if @file.dmsf_folder_id api.dmsf_folder_id @file.folder if @file.dmsf_folder_id
api.version "#{@file.last_revision.major_version}.#{@file.last_revision.minor_version}" if @file.last_revision api.version "#{@file.last_revision.major_version}.#{@file.last_revision.minor_version}" if @file.last_revision
api.content_url url_for(:controller => :dmsf_files, :action => 'show', :download => '', :id => @file, :only_path => false) api.content_url url_for(:controller => :dmsf_files, :action => 'show', :download => '', :id => @file)
end end