lib/hanami/action/rack.rb in hanami-controller-1.2.0 vs lib/hanami/action/rack.rb in hanami-controller-1.3.0.beta1
- old
+ new
@@ -1,10 +1,11 @@
require 'securerandom'
require 'hanami/action/request'
require 'hanami/action/base_params'
require 'hanami/action/rack/callable'
require 'hanami/action/rack/file'
+require 'hanami/utils/deprecation'
module Hanami
module Action
# Rack integration API
#
@@ -243,10 +244,13 @@
def request
@request ||= ::Hanami::Action::Request.new(@_env)
end
# Return parsed request body
+ #
+ # @deprecated
def parsed_request_body
+ Hanami::Utils::Deprecation.new('#parsed_request_body is deprecated and it will be removed in future versions')
@_env.fetch(ROUTER_PARSED_BODY, nil)
end
private