fuel-packages/fuel-phpactiverecord — pull request #2 by beezee (2012-12-10 01:58:23+00:00)
Title: Set ActiveRecord to log queries in the Fuel profiler

This commit adds a FuelQueryLogger class and sets it as the ActiveRecord logger, so that queries performed using ActiveRecord will show in the Queries pane of the Fuel profiler.

It also passes the $values array to the in the Connection::query call to $logger->log() so that the literal query can be logged instead of just showing question marks for any params passed for preparation.