Updated to work with Rails 0.14.1 (1.0 Release candidate) - fixes #145.

The bug where project associations didn't seem to be immediately displayed when next actions were added from the Context page is magically fixed! Fixes #142.



git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@156 a4c988fc-2ded-0310-b66e-134b36920a42
This commit is contained in:
bsag 2005-10-30 12:21:50 +00:00
parent 551e767b5e
commit 9867ca01ad
35 changed files with 3007 additions and 1419 deletions

View file

@ -1,29 +1,3 @@
#!/usr/bin/env ruby
require 'optparse'
options = { :environment => "development" }
ARGV.options do |opts|
script_name = File.basename($0)
opts.banner = "Usage: runner 'puts Person.find(1).name' [options]"
opts.separator ""
opts.on("-e", "--environment=name", String,
"Specifies the environment for the runner to operate under (test/development/production).",
"Default: development") { |options[:environment]| }
opts.separator ""
opts.on("-h", "--help",
"Show this help message.") { puts opts; exit }
opts.parse!
end
ENV["RAILS_ENV"] = options[:environment]
#!/usr/local/bin/ruby
require File.dirname(__FILE__) + '/../config/environment'
eval(ARGV.first)
#!/usr/bin/ruby
require File.dirname(__FILE__) + '/../config/boot'
require 'commands/runner'