transitionally downgraded to Rails 4.1 since activerecord-jdbcpostgresql-adapter is not fully compatible with Active Record 4.2

This commit is contained in:
Hauke Klement
2015-03-02 15:04:37 +01:00
parent 03486bff35
commit 7477d4c6dd
17 changed files with 107 additions and 174 deletions

View File

@ -1,20 +1,20 @@
FILENAME_REGEXP = /[\w\.]+/ unless Kernel.const_defined?(:FILENAME_REGEXP)
Rails.application.routes.draw do
root 'application#welcome'
root to: 'application#welcome'
namespace :admin do
get 'dashboard' => 'dashboard#show'
get 'dashboard', to: 'dashboard#show'
end
get '/help' => 'application#help'
get '/help', to: 'application#help'
resources :consumers
resources :execution_environments do
member do
get :shell
post 'shell' => :execute_command, as: :execute_command
post 'shell', as: :execute_command, to: :execute_command
end
resources :errors, only: [:create, :index, :show]
@ -40,29 +40,29 @@ Rails.application.routes.draw do
resources :internal_users do
member do
match 'activate' => 'internal_users#activate', via: [:get, :patch, :put]
match 'reset_password' => 'internal_users#reset_password', via: [:get, :patch, :put]
match 'activate', to: 'internal_users#activate', via: [:get, :patch, :put]
match 'reset_password', to: 'internal_users#reset_password', via: [:get, :patch, :put]
end
end
match '/forgot_password' => 'internal_users#forgot_password', as: 'forgot_password', via: [:get, :post]
match '/forgot_password', as: 'forgot_password', to: 'internal_users#forgot_password', via: [:get, :post]
resources :sessions, only: [:create, :destroy, :new]
post '/lti/launch' => 'sessions#create_through_lti', as: 'lti_launch'
get '/lti/return' => 'sessions#destroy_through_lti', as: 'lti_return'
get '/sign_in' => 'sessions#new', as: 'sign_in'
delete '/sign_out' => 'sessions#destroy', as: 'sign_out'
post '/lti/launch', as: 'lti_launch', to: 'sessions#create_through_lti'
get '/lti/return', as: 'lti_return', to: 'sessions#destroy_through_lti'
get '/sign_in', as: 'sign_in', to: 'sessions#new'
delete '/sign_out', as: 'sign_out', to: 'sessions#destroy'
resources :submissions, only: [:create, :index, :show] do
member do
get 'download/:filename' => :download_file, as: :download, constraints: {filename: FILENAME_REGEXP}
get 'render/:filename' => :render_file, as: :render, constraints: {filename: FILENAME_REGEXP}
get 'run/:filename' => :run, as: :run, constraints: {filename: FILENAME_REGEXP}
get 'download/:filename', as: :download, constraints: {filename: FILENAME_REGEXP}, to: :download_file
get 'render/:filename', as: :render, constraints: {filename: FILENAME_REGEXP}, to: :render_file
get 'run/:filename', as: :run, constraints: {filename: FILENAME_REGEXP}, to: :run
get :score
get :statistics
post :stop
get 'test/:filename' => :test, as: :test, constraints: {filename: FILENAME_REGEXP}
get 'test/:filename', as: :test, constraints: {filename: FILENAME_REGEXP}, to: :test
end
end