Sha256: 68f0b9dc9ef4646158afb9bae2c42e2ec0d06ed65db3e896d8ac8c566db5aa52
Contents?: true
Size: 581 Bytes
Versions: 4
Compression:
Stored size: 581 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 'logger' require_relative 'base_middleware' module GoodData module Bricks class ParamsInspectMiddleware < Bricks::Middleware def call(params) inspect = params[:inspect_params] || params['inspect_params'] puts 'Inspecting Parameters ...' puts JSON.pretty_generate(params) if inspect.to_b end end end end
Version data entries
4 entries across 4 versions & 1 rubygems