Updates to work Redmine 2.x and Rails 3.x.