made compatible with redmine-2.1

redmine 2.x series uses  ActionDispatch::Callbacks