mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-01-01 21:21:50 +08:00
Update my_modules_controller.rb
This commit is contained in:
parent
9dcb89e371
commit
7fc1126aa9
1 changed files with 2 additions and 2 deletions
|
@ -67,7 +67,7 @@ class MyModulesController < ApplicationController
|
|||
subject: @my_module,
|
||||
message_items: { my_module: @my_module.id }
|
||||
)
|
||||
log_user_assignment_activity
|
||||
log_user_designation_activity
|
||||
redirect_to canvas_experiment_path(@experiment) if params[:my_module][:view_mode] == 'canvas'
|
||||
rescue ActiveRecord::RecordInvalid
|
||||
render json: @my_module.errors, status: :unprocessable_entity
|
||||
|
@ -546,7 +546,7 @@ class MyModulesController < ApplicationController
|
|||
log_activity(type_of, @my_module, message_items)
|
||||
end
|
||||
|
||||
def log_user_assignment_activity
|
||||
def log_user_designation_activity
|
||||
users = User.where(id: params[:my_module][:user_ids])
|
||||
|
||||
users.each do |user|
|
||||
|
|
Loading…
Reference in a new issue