summaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authormkinski <miko.kinski@yahoo.de>2012-08-02 10:09:00 (GMT)
committermkinski <miko.kinski@yahoo.de>2012-08-02 10:09:00 (GMT)
commit069cddd1c424f758e055c1de44c5a8a17d51c4c9 (patch)
tree64bc14bd64da2bc05ce31e2254bb5fd8ff916f09 /config
parentd31a74b2044a306f1363cac642c94a3379b2aea9 (diff)
downloadwiki_external_filter-069cddd1c424f758e055c1de44c5a8a17d51c4c9.zip
wiki_external_filter-069cddd1c424f758e055c1de44c5a8a17d51c4c9.tar.gz
wiki_external_filter-069cddd1c424f758e055c1de44c5a8a17d51c4c9.tar.bz2
add support for redmine > v2.0
Diffstat (limited to 'config')
-rw-r--r--config/routes.rb7
1 files changed, 3 insertions, 4 deletions
diff --git a/config/routes.rb b/config/routes.rb
index db7d3d4..f96b5d1 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -1,4 +1,3 @@
-ActionController::Routing::Routes.draw do |map|
- map.connect 'wiki_external_filter/:filename', :controller => 'wiki_external_filter', :action => 'filter', :macro => 'video', :index => '1', :requirements => { :filename => /video\.flv/ }
- map.connect 'wiki_external_filter/:filename', :controller => 'wiki_external_filter', :action => 'filter', :macro => 'video_url', :index => '1', :requirements => { :filename => /video_url\.flv/ }
-end
+match 'wiki_external_filter/:filename', :controller => 'wiki_external_filter', :action => 'filter', :macro => 'video', :index => '1', :requirements => { :filename => /video\.flv/ }
+match 'wiki_external_filter/:filename', :controller => 'wiki_external_filter', :action => 'filter', :macro => 'video_url', :index => '1', :requirements => { :filename => /video_url\.flv/ }
+match '/wiki_external_filter', :to => 'wiki_external_filter#filter', :via => [:get, :post]