diff --git a/app/controllers/contest_management_controller.rb b/app/controllers/contest_management_controller.rb --- a/app/controllers/contest_management_controller.rb +++ b/app/controllers/contest_management_controller.rb @@ -7,7 +7,7 @@ end def user_stat - if not Configuration.indv_contest_mode? + if not GraderConfiguration.indv_contest_mode? redirect_to :action => 'index' and return end @@ -27,7 +27,7 @@ end def clear_all_stat - if not Configuration.indv_contest_mode? + if not GraderConfiguration.indv_contest_mode? redirect_to :action => 'index' and return end @@ -38,7 +38,7 @@ def change_contest_mode if ['standard', 'contest', 'indv-contest'].include? params[:id] - config = Configuration.find_by_key('system.mode') + config = GraderConfiguration.find_by_key('system.mode') config.value = params[:id] config.save else