Skip to content

Commit

Permalink
allow druids to be passed in via :id or :object_id
Browse files Browse the repository at this point in the history
  • Loading branch information
Darren Hardy committed Dec 13, 2016
1 parent 7818934 commit df91379
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/controllers/application_controller.rb
Expand Up @@ -4,12 +4,12 @@ class ApplicationController < ActionController::API
http_basic_authenticate_with name: Dor::Config.dor.service_user, password: Dor::Config.dor.service_password

protected

def proxy_rest_client_response(response)
render status: response.code, content_type: response.headers[:content_type], body: response.body
end

def load_item
@item = Dor.find(params[:id])
@item = Dor.find(params[:id] || params[:object_id])
end
end

0 comments on commit df91379

Please sign in to comment.