lib/hanami/action/base_params.rb in hanami-controller-1.3.3 vs lib/hanami/action/base_params.rb in hanami-controller-2.0.0.alpha1
- old
+ new
@@ -1,10 +1,10 @@
require 'rack/request'
require 'hanami/utils/hash'
module Hanami
- module Action
+ class Action
class BaseParams
# The key that returns raw input from the Rack env
#
# @since 0.7.0
# @api private
@@ -171,10 +171,10 @@
# @since 0.7.0
# @api private
def _router_params(fallback = {})
env.fetch(ROUTER_PARAMS) do
if session = fallback.delete(RACK_SESSION) # rubocop:disable Lint/AssignmentInCondition
- fallback[RACK_SESSION] = Utils::Hash.new(session).symbolize!.to_hash
+ fallback[RACK_SESSION] = Utils::Hash.deep_symbolize(session)
end
fallback
end
end