Created
August 18, 2015 17:14
-
-
Save robvolk/fe0853bd72a15ec104ab to your computer and use it in GitHub Desktop.
See raw MongoDB queries from Mongoid / Moped by enabling Logger
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# From Rails console, run the following and you'll see raw Moped queries for every Mongoid query! | |
Moped.logger = Logger.new(STDOUT) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment