I work with Devise token_authentication service and ActiveResource client. I wish set automatically :auth_token params in every requests !
I tried this, but this doesn't work...
class AuthApp
def initialize(app)
@app = app
end
def call(env)
status, headers, response = @app.call(env)
request = Rack::Request.new(env)
request.params[:auth_token] = 'jCxKPj8wJJdOnQJB8ERy'
[status, headers, response]
end
end
Any idea ?