Mercurial > hg > soundsoftware-site
changeset 1118:35686c1667de redmine-2.2-integration
Fixed dispatcher and routes issues due to upgrading to the new rails/redmine versions.
author | luisf <luis.figueira@eecs.qmul.ac.uk> |
---|---|
date | Tue, 08 Jan 2013 14:06:55 +0000 |
parents | b4b72f1eb644 |
children | 22d81bd0b62c |
files | plugins/redmine_bibliography/config/routes.rb plugins/redmine_bibliography/init.rb |
diffstat | 2 files changed, 2 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- 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
--- 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'