
03-18-2009, 03:40 AM
|
|
Member
|
|
Join Date: Oct 2008
Posts: 20
|
|
Quote:
Originally Posted by mistwang
I am thinking adding ruby code to extract the version number from file "RAILS_ROOT/config/environment.rb, at the beginning of the file,
"RAILS_GEM_VERSION" is set to the version of Rails should be used.
Can anyone help with the ruby code?
|
If I can help I will - what exactly are you after? Some additions to the github code above? e.g. do you just want to do something like
if RAILS_GEM_VERSION >= 2.3.2
# use rack
else
# use old system
end
or did you want to get the RAILS_GEM_VERSION number out to litespeed?
|