# HG changeset patch # User luisf # Date 1357654015 0 # Node ID 35686c1667deab12323ce4e082a6322920f3879e # Parent b4b72f1eb64478b5306c35fdbc1a8623287b46a6 Fixed dispatcher and routes issues due to upgrading to the new rails/redmine versions. diff -r b4b72f1eb644 -r 35686c1667de plugins/redmine_bibliography/config/routes.rb --- a/plugins/redmine_bibliography/config/routes.rb Tue Jan 08 12:32:05 2013 +0000 +++ b/plugins/redmine_bibliography/config/routes.rb Tue Jan 08 14:06:55 2013 +0000 @@ -1,3 +1,3 @@ -ActionController::Routing::Routes.draw do |map| +RedmineApp::Application.routes.draw do |map| map.resources :publications, :collection => { :sort_author_order => :post } end \ No newline at end of file diff -r b4b72f1eb644 -r 35686c1667de plugins/redmine_bibliography/init.rb --- a/plugins/redmine_bibliography/init.rb Tue Jan 08 12:32:05 2013 +0000 +++ b/plugins/redmine_bibliography/init.rb Tue Jan 08 14:06:55 2013 +0000 @@ -1,11 +1,10 @@ require 'redmine' -require 'dispatcher' require 'bibtex' require 'citeproc' # Patches to the Redmine core. -Dispatcher.to_prepare :redmine_model_dependencies do +ActionDispatch::Callbacks.to_prepare :redmine_model_dependencies do require_dependency 'project' require_dependency 'user' require_dependency 'mailer'