From 59fac8f388518293b3ec06b92132a16d2bce41c0 Mon Sep 17 00:00:00 2001 From: Nils Caspar Date: Tue, 1 Jan 2013 22:25:45 +0100 Subject: [PATCH] Fixed rails command --- script/rails | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/script/rails b/script/rails index f8da2cff..6f8a1cc3 100755 --- a/script/rails +++ b/script/rails @@ -1,6 +1,8 @@ #!/usr/bin/env ruby # This command will automatically be run when you run "rails" with Rails 3 gems installed from the root of your application. -APP_PATH = File.expand_path('../../config/application', __FILE__) -require File.expand_path('../../config/boot', __FILE__) -require 'rails/commands' +ENGINE_ROOT = File.expand_path('../..', __FILE__) +ENGINE_PATH = File.expand_path('../../lib/casino/engine', __FILE__) + +require 'rails/all' +require 'rails/engine/commands'