diff --git a/app/controllers/courses_controller.rb b/app/controllers/courses_controller.rb index 842249d6..43e9ef82 100644 --- a/app/controllers/courses_controller.rb +++ b/app/controllers/courses_controller.rb @@ -12,7 +12,7 @@ class CoursesController < ApplicationController helper :graduation_tasks include ApplicationHelper helper SyllabusesHelper - + # before_filter :auth_login1, :only => [:show, :course_activity, :feedback] if Redmine::Configuration['gitlab_address'].include?("test") skip_before_filter :verify_authenticity_token, :only => [:update_course_module, :join_course_multi_role] diff --git a/lib/gitlab-cli/bin/gitlab b/lib/gitlab-cli/bin/gitlab index af0fd0cc..2204bef3 100644 --- a/lib/gitlab-cli/bin/gitlab +++ b/lib/gitlab-cli/bin/gitlab @@ -1,5 +1,5 @@ #!/usr/bin/env ruby - +# $:.unshift File.expand_path('../../lib', __FILE__) require 'gitlab/cli' diff --git a/lib/grack/bin/testserver b/lib/grack/bin/testserver index 3c0db5b3..1099ec4a 100644 --- a/lib/grack/bin/testserver +++ b/lib/grack/bin/testserver @@ -4,7 +4,6 @@ $LOAD_PATH.unshift(libdir) unless $LOAD_PATH.include?(libdir) Bundler.require(:default, :development) - require 'grack' require 'rack' root = File.absolute_path( File.join( File.dirname(__FILE__), '../examples' ) ) diff --git a/public/react/src/modules/page/component/TPICodeMirror.js b/public/react/src/modules/page/component/TPICodeMirror.js index 4ae5cc79..381a8a8a 100644 --- a/public/react/src/modules/page/component/TPICodeMirror.js +++ b/public/react/src/modules/page/component/TPICodeMirror.js @@ -12,7 +12,6 @@ import Drawer from 'material-ui/Drawer'; import './TPICodeMirror.css' import TPICodeSetting from './TPICodeSetting' - import { fromStore, toStore } from 'educoder' require('codemirror/lib/codemirror.css'); // require('codemirror/mode/javascript/javascript');