aboutsummaryrefslogblamecommitdiffstats
path: root/railties/bin/console
blob: a946d1a08a1a0d146c598439d25c08b80c3f8391 (plain) (tree)
1
2
3
4
5
                     



                                                        
#!/usr/local/bin/ruby
ENV['RAILS_ENV'] = ARGV[0] || 'development'
puts "Loading environment: #{ENV['RAILS_ENV']}"
irb = RUBY_PLATFORM =~ /mswin32/ ? 'irb.bat' : 'irb'
exec "#{irb} -r config/environment.rb -r irb/completion"