Replace deprecated RAILS_ROOT to Rails.env [#4373 state:resolved]

Signed-off-by: wycats <wycats@gmail.com>
This commit is contained in:
Anil Wadghule 2010-04-12 23:45:24 +05:30 committed by wycats
parent a64bfc3c8e
commit 219c81b9e1
1 changed files with 1 additions and 1 deletions

View File

@ -69,4 +69,4 @@ BuildReaper.number_of_builds_to_keep = 100
# any files that you'd like to override in cruise, keep in ~/.cruise, and copy over when this file is loaded like this
site_css = CRUISE_DATA_ROOT + "/site.css"
FileUtils.cp site_css, RAILS_ROOT + "/public/stylesheets/site.css" if File.exists? site_css
FileUtils.cp site_css, Rails.root + "/public/stylesheets/site.css" if File.exists? site_css