collectiveidea / awesomeness
- Source
- Commits
- Network (1)
- Issues (0)
- Downloads (1)
- Wiki (1)
- Graphs
-
Tree:
755fd92
awesomeness / lib / awesomeness.rb
| e13d3233 » | brandon | 2007-04-15 | 1 | Dir[File.dirname(__FILE__) + "/awesomeness/**/*.rb"].each {|f| require f } | |
| 2 | |||||
| a50495fe » | brandon | 2008-06-20 | 3 | # From: http://weblog.jamisbuck.org/2007/1/31/more-on-watching-activerecord | |
| 4 | # Easy way to view logs in script/console. | ||||
| 5 | # simply type: log_to(STDOUT) | ||||
| 6 | # and all of your active record queries will show up inline. | ||||
| 7 | def log_to(stream = STDOUT) | ||||
| 8 | ActiveRecord::Base.logger = Logger.new(stream) | ||||
| 9 | ActiveRecord::Base.clear_active_connections! | ||||
| 10 | end | ||||

