Skip to content

Commit

Permalink
include .railsrc in rails 3 console
Browse files Browse the repository at this point in the history
  • Loading branch information
daz committed Oct 5, 2010
1 parent 639c809 commit f0a97e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion irbrc
Original file line number Diff line number Diff line change
Expand Up @@ -51,4 +51,4 @@ def paste
`pbpaste`
end

load File.dirname(__FILE__) + '/.railsrc' if $0 == 'irb' && ENV['RAILS_ENV']
load File.dirname(__FILE__) + '/.railsrc' if ($0 == 'irb' && ENV['RAILS_ENV']) || ($0 == 'script/rails' && Rails.env)

0 comments on commit f0a97e8

Please sign in to comment.