Skip to content

Commit 2bb0bba

Browse files
committed
Remove Mime::MSGPACK
Accessing to mime types through constants was removed since Rails 5.2. rails/rails@2a3718f
1 parent e7fb1a8 commit 2bb0bba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/msgpack_rails.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ class Rails < ::Rails::Engine
3636
::Mime::Type.register "application/msgpack", :msgpack
3737

3838
::ActionController::Renderers.add :msgpack do |data, options|
39-
self.content_type = Mime::MSGPACK
39+
self.content_type = Mime[:msgpack]
4040
self.response_body = data.is_a?(String) ? data : data.to_msgpack(options)
4141
end
4242
end

0 commit comments

Comments
 (0)