I am modifying params object in my application_controller which handles all the routes coming with root . I have multiple controllers that chain behind the application_controller .
I modified the params object in the application_controller but i get the original params object in the subsequent controllers .
Note: After modification in the application controller i printed out the params ,it got modified there. But when i printed out the same in the subsequent controllers it was back in the original state .
Application Controller (Application Controller is in a core Engine which is the first controller that gets hit by the request)
param = nil
#Identify method from request object
method = request.method #Come from request.method
if method == "GET"
param = JSON.parse(URI.unescape(params["body"]))
params[:header] = param[:header]
params[:data] = param[:data]
params = params["body"]
class API::LoaderController < Core::ApplicationController