Sha256: 0daf3704c5a6f73249308adec37b22ef22f8e363069deee5b5f552932e939c4c
Contents?: true
Size: 661 Bytes
Versions: 1
Compression:
Stored size: 661 Bytes
Contents
module Dao module Middleware class ParamsParser def initialize(app) @app = app end def call(env) @env = env #if params = parse_formatted_parameters(env) #env["action_dispatch.request.request_parameters"] = params #end query_parameters = @env["action_controller.request.query_parameters"] request_parameters = @env["action_controller.request.request_parameters"] Rails.logger.info("query_parameters : #{ query_parameters.inspect }") Rails.logger.info("request_parameters : #{ request_parameters.inspect }") @app.call(@env) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
dao-4.2.1 | lib/dao/rack/middleware/params_parser.rb |