Skip to content

Commit

Permalink
Merge pull request #2805 from projecthydra/route-priorities
Browse files Browse the repository at this point in the history
Prioritize sufia engine routes over curation concerns
  • Loading branch information
jcoyne committed Oct 20, 2016
2 parents b10da2b + 6acc2c2 commit 271012e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/generators/sufia/install_generator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,8 @@ def copy_helper
def inject_routes
gsub_file 'config/routes.rb', /root (:to =>|to:) "catalog#index"/, ''
gsub_file 'config/routes.rb', /'welcome#index'/, "'sufia/homepage#index'" # Replace the root path injected by CurationConcerns
routing_code = "\n mount Sufia::Engine => '/'\n"
sentinel = /end\Z/
routing_code = "\n mount Sufia::Engine, at: '/'\n"
sentinel = /\s+mount CurationConcerns::Engine/
inject_into_file 'config/routes.rb', routing_code, before: sentinel, verbose: false
end

Expand Down

0 comments on commit 271012e

Please sign in to comment.