Compatibility for Redmine 2.x with rails 3.x