lib/gooddata/bricks/middleware/decode_params_middleware.rb in gooddata-0.6.49 vs lib/gooddata/bricks/middleware/decode_params_middleware.rb in gooddata-0.6.50
- old
+ new
@@ -1,8 +1,8 @@
# encoding: UTF-8
#
-# Copyright (c) 2010-2015 GoodData Corporation. All rights reserved.
+# Copyright (c) 2010-2017 GoodData Corporation. All rights reserved.
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree.
require_relative 'base_middleware'
@@ -11,10 +11,11 @@
# Converts params from encoded hash to decoded hash
class DecodeParamsMiddleware < Bricks::Middleware
def call(params)
params = params.to_hash
- @app.call(GoodData::Helpers.decode_params(params))
+ # Decode and resolve reference parameters in gd_encoded_params
+ @app.call(GoodData::Helpers.decode_params(params, :resolve_reference_params => true))
end
end
end
end