Skip to content

Commit

Permalink
Return a HWIA in rails 4
Browse files Browse the repository at this point in the history
  • Loading branch information
jcoyne committed Mar 15, 2017
1 parent a80d392 commit 174a726
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/controllers/riiif/images_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,9 @@ def image_id
##
# @return [ActiveSupport::HashWithIndifferentAccess]
def image_request_params
params.permit(:region, :size, :rotation, :quality, :format).to_h
result = params.permit(:region, :size, :rotation, :quality, :format).to_h
return result.with_indifferent_access if Rails.version < '5'
result
end

def authorization_service
Expand Down

0 comments on commit 174a726

Please sign in to comment.