Skip to content

Instantly share code, notes, and snippets.

@robvolk
Created August 18, 2015 17:14
Show Gist options
  • Save robvolk/fe0853bd72a15ec104ab to your computer and use it in GitHub Desktop.
Save robvolk/fe0853bd72a15ec104ab to your computer and use it in GitHub Desktop.
See raw MongoDB queries from Mongoid / Moped by enabling Logger
# 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