Class: Course::ExperiencePoints::DisbursementController

Inherits:
ComponentController
  • Object
show all
Includes:
UsersBreadcrumbConcern
Defined in:
app/controllers/course/experience_points/disbursement_controller.rb

Direct Known Subclasses

ForumDisbursementController

Instance Method Summary collapse

Instance Method Details

#createObject

:nodoc:


10
11
12
13
14
15
16
17
# File 'app/controllers/course/experience_points/disbursement_controller.rb', line 10

def create # :nodoc:
  if @disbursement.save
    redirect_to disburse_experience_points_course_users_path(current_course),
                success: t('.success', count: recipient_count)
  else
    render 'new'
  end
end

#newObject

:nodoc:


7
8
# File 'app/controllers/course/experience_points/disbursement_controller.rb', line 7

def new # :nodoc:
end