Rename #import_thin_common_cartridge to #import_proforma_xml

- everywhere

(leoselig/codeocean#1)
This commit is contained in:
leo.selig
2016-02-12 11:10:25 +01:00
parent 1c3a1a6aab
commit f787445e5b
2 changed files with 5 additions and 5 deletions

View File

@ -11,9 +11,9 @@ class ExercisesController < ApplicationController
before_action :set_file_types, only: [:create, :edit, :new, :update]
before_action :set_teams, only: [:create, :edit, :new, :update]
skip_before_filter :verify_authenticity_token, only: [:import_thin_common_cartridge]
skip_after_action :verify_authorized, only: [:import_thin_common_cartridge]
skip_after_action :verify_policy_scoped, only: [:import_thin_common_cartridge]
skip_before_filter :verify_authenticity_token, only: [:import_proforma_xml]
skip_after_action :verify_authorized, only: [:import_proforma_xml]
skip_after_action :verify_policy_scoped, only: [:import_proforma_xml]
def authorize!
authorize(@exercise || @exercises)
@ -66,7 +66,7 @@ class ExercisesController < ApplicationController
def edit
end
def import_thin_common_cartridge
def import_proforma_xml
begin
user = user_for_oauth2_request()
exercise = Exercise.new

View File

@ -41,7 +41,7 @@ Rails.application.routes.draw do
resources :hints
end
post '/thin_common_cartridge' => 'exercises#import_thin_common_cartridge'
post '/import_proforma_xml' => 'exercises#import_proforma_xml'
resources :exercises do
collection do