fixed Redmine (sorta) on Defect #10930

http://www.redmine.org/issues/10930
made rails gem version-independent