|
|
@ -1,5 +1,6 @@
|
|
|
|
class ChallengesController < ApplicationController
|
|
|
|
class ChallengesController < ApplicationController
|
|
|
|
before_action :require_login
|
|
|
|
before_action :require_login
|
|
|
|
|
|
|
|
before_action :check_auth
|
|
|
|
before_action :find_shixun, only: [:new, :create, :index]
|
|
|
|
before_action :find_shixun, only: [:new, :create, :index]
|
|
|
|
skip_before_action :verify_authenticity_token, only: [:create, :update, :create_choose_question, :crud_answer]
|
|
|
|
skip_before_action :verify_authenticity_token, only: [:create, :update, :create_choose_question, :crud_answer]
|
|
|
|
before_action :find_challenge, only: [:edit, :show, :update, :create_choose_question, :index_down, :index_up,
|
|
|
|
before_action :find_challenge, only: [:edit, :show, :update, :create_choose_question, :index_down, :index_up,
|
|
|
|