brookr (owner)

Revisions

gist: 122490 Download_button fork
public
Public Clone URL: git://gist.github.com/122490.git
Text only
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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