Module: Course::AchievementConditionalConcern

Extended by:
ActiveSupport::Concern
Included in:
Course::Achievement::Condition::AchievementsController, Course::Achievement::Condition::AssessmentsController, Course::Achievement::Condition::LevelsController
Defined in:
app/controllers/concerns/course/achievement_conditional_concern.rb

Instance Method Summary collapse

Instance Method Details

#return_to_pathObject


9
10
11
# File 'app/controllers/concerns/course/achievement_conditional_concern.rb', line 9

def return_to_path
  edit_course_achievement_path(current_course, @conditional)
end

#set_conditionalObject


13
14
15
# File 'app/controllers/concerns/course/achievement_conditional_concern.rb', line 13

def set_conditional
  @conditional = Course::Achievement.find(params[:achievement_id])
end