Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- require 'rubygems'
- require 'hirb'
- Hirb::View.enable
- if rails_env = ENV['RAILS_ENV']
- rails_root = File.basename(Dir.pwd)
- IRB.conf[:PROMPT] ||= {}
- IRB.conf[:PROMPT][:RAILS] = {
- :PROMPT_I => "#{rails_root}> ",
- :PROMPT_S => "#{rails_root}* ",
- :PROMPT_C => "#{rails_root}? ",
- :RETURN => "=> %s\n"
- }
- IRB.conf[:PROMPT_MODE] = :RAILS
- IRB.conf[:IRB_RC] = Proc.new do
- ActiveRecord::Base.logger = Logger.new(STDOUT)
- end
- end
- IRB.conf[:SAVE_HISTORY] = 10000
Add Comment
Please, Sign In to add comment