Skip to content

Commit

Permalink
Merge pull request #49 from curationexperts/fix_rails_4
Browse files Browse the repository at this point in the history
Return a HWIA in rails 4
  • Loading branch information
bess authored Mar 15, 2017
2 parents 64713f3 + 174a726 commit d5d08e2
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 d5d08e2

Please sign in to comment.