Sha256: f21d83b06e0ed619dbc6e0466b2377b44e70dd34f7926daa2c636e7773de6653

Contents?: true

Size: 321 Bytes

Versions: 10

Compression:

Stored size: 321 Bytes

Contents

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

        @app.call(GoodData::Helpers.decode_params(params))
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
gooddata-0.6.20 lib/gooddata/bricks/middleware/decode_params_middleware.rb
gooddata-0.6.19 lib/gooddata/bricks/middleware/decode_params_middleware.rb
gooddata-0.6.18 lib/gooddata/bricks/middleware/decode_params_middleware.rb
gooddata-0.6.17 lib/gooddata/bricks/middleware/decode_params_middleware.rb
gooddata-0.6.16 lib/gooddata/bricks/middleware/decode_params_middleware.rb
gooddata-0.6.15 lib/gooddata/bricks/middleware/decode_params_middleware.rb
gooddata-0.6.14 lib/gooddata/bricks/middleware/decode_params_middleware.rb
gooddata-0.6.13 lib/gooddata/bricks/middleware/decode_params_middleware.rb
gooddata-0.6.12 lib/gooddata/bricks/middleware/decode_params_middleware.rb
gooddata-0.6.11 lib/gooddata/bricks/middleware/decode_params_middleware.rb