Log request type in Rails

I want to log the type of request (DDL, DML, etc.) while logging requests in Rails. I have performed query logging by patching ActiveSupport :: LogSubscriber. But failed to get the request type. Can anyone help me with this?

PS I am using Rails 4.

+3


source to share





All Articles