Skip to content

Instantly share code, notes, and snippets.

@jherdman
Created December 3, 2015 03:20
Show Gist options
  • Save jherdman/c04016bb6f29328de017 to your computer and use it in GitHub Desktop.
Save jherdman/c04016bb6f29328de017 to your computer and use it in GitHub Desktop.
class AcuityParameterFixer
def initialize(app)
@app = app
end
def call(env)
request = Rack::Request.new(env)
if request.path == '/acuity/webhook' && request.params['action']
request.update_param('acuity_action', request.params['action'])
end
status, headers, resp = @app.call(env)
[status, headers, resp]
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment