Find file
Fetching contributors…
Cannot retrieve contributors at this time
12 lines (8 sloc) 251 Bytes
# For seeing mysql statements in the terminal
# put it in config/environments/development.rb
# ideal for debugging
def log_to(stream)
ActiveRecord::Base.logger = Logger.new(stream)
ActiveRecord::Base.clear_active_connections!
end
log_to STDOUT