fixing it so that it works on Rails 2.3 based JRuby projects