Sha256: db6383646339e8dde9e9034d1f885fd0760a07868ead9b6a88e47e28868748eb

Contents?: true

Size: 647 Bytes

Versions: 1

Compression:

Stored size: 647 Bytes

Contents

# encoding: UTF-8
#
# 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'

module GoodData
  module Bricks
    # Converts params from encoded hash to decoded hash
    class DecodeParamsMiddleware < Bricks::Middleware
      def call(params)
        params = params.to_hash

        # Decode and resolve reference parameters in gd_encoded_params
        @app.call(GoodData::Helpers.decode_params(params, :resolve_reference_params => true))
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
gooddata-0.6.50 lib/gooddata/bricks/middleware/decode_params_middleware.rb