Skip to content

Commit

Permalink
Fix warning in Rails 7 (#13)
Browse files Browse the repository at this point in the history
* update content_type call

* bump version
  • Loading branch information
tycooon committed Dec 22, 2021
1 parent dc978dd commit ef0de81
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
umbrellio-utils (0.4.2)
umbrellio-utils (0.4.3)
memery (~> 1)

GEM
Expand Down Expand Up @@ -128,6 +128,7 @@ GEM

PLATFORMS
arm64-darwin-20
arm64-darwin-21
x86_64-darwin-20
x86_64-linux

Expand All @@ -151,4 +152,4 @@ DEPENDENCIES
yard

BUNDLED WITH
2.2.31
2.3.0
2 changes: 1 addition & 1 deletion lib/umbrellio_utils/request_wrapper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def ip
attr_accessor :request

def parse_params
case request.content_type
case request.media_type
when "application/json"
Parsing.safely_parse_json(body)
when "application/xml"
Expand Down
2 changes: 1 addition & 1 deletion lib/umbrellio_utils/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# frozen_string_literal: true

module UmbrellioUtils
VERSION = "0.4.2"
VERSION = "0.4.3"
end

0 comments on commit ef0de81

Please sign in to comment.