app/controllers/downloads_controller.rb in hydra-head-3.0.1 vs app/controllers/downloads_controller.rb in hydra-head-3.1.0.pre1
- old
+ new
@@ -2,12 +2,10 @@
class DownloadsController < ApplicationController
include MediaShelf::ActiveFedoraHelper
include Hydra::RepositoryController
helper :downloads
- before_filter :require_fedora
-
# Note: Actual downloads are handled by the index method insead of the show method
# in order to avoid ActionController being clever with the filenames/extensions/formats.
# To download a datastream, pass the datastream id as ?document_id=#{dsid} in the url
def index
fedora_object = ActiveFedora::Base.load_instance(params[:asset_id])
@@ -31,6 +29,6 @@
# format.pdf { send_data( Fedora::Repository.instance.fetch_custom(params[:document_id], "datastreams/#{datastream_id}/content") ) }
# end
#
# end
-end
\ No newline at end of file
+end