def inside_rack_middleware
MyModel.update_attributes(:ip => request.ip)
redirect somewhere else
end
is that possible?
got the answear via @supercoco9 on twitter, "if your middleware is in a rack/rails stack you can use the models directly via AR"
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With