File: routes.rb

package info (click to toggle)
redmine-plugin-pretend 0.0.2%2Bgit20130821-3
  • links: PTS, VCS
  • area: main
  • in suites: jessie-kfreebsd
  • size: 136 kB
  • sloc: ruby: 87; makefile: 35
file content (11 lines) | stat: -rw-r--r-- 484 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
if Rails::VERSION::MAJOR >= 3
  RedmineApp::Application.routes.draw do
    post 'admin/pretend_to/:id' => 'application#pretend_to', :as => 'pretend_to'
    post 'admin/unpretend' => 'application#unpretend', :as => 'unpretend'
  end
else
  ActionController::Routing::Routes.draw do |map|
    map.pretend_to 'admin/pretend_to/:id', :controller => 'application', :action => 'pretend_to'
    map.unpretend 'admin/unpretend', :controller => 'application', :action => 'unpretend'
  end
end