Created
June 2, 2009 18:43
-
-
Save brookr/122490 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| require 'rubygems' | |
| require 'utility_belt' | |
| require 'wirble' | |
| class Object | |
| def local_methods | |
| (methods - Object.instance_methods).sort | |
| end | |
| end | |
| def with_sql | |
| bkup = ActiveRecord::Base.logger | |
| ActiveRecord::Base.logger = Logger.new(STDOUT) | |
| yield | |
| ActiveRecord::Base.logger = bkup | |
| end | |
| class Object | |
| def console_reminder | |
| puts "You're not in Terminal. CMD-} until you're out of the console." | |
| end | |
| %w{pwd cd l rake}.each do |cmd| | |
| eval "alias #{cmd} console_reminder" | |
| end | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment