Fix for Redmine2

Dispatcher.to_prepare -> Rails.configuration.to_prepare