scinote-web/app/models/my_module_status_consequences/change_activity.rb

11 lines
333 B
Ruby

# frozen_string_literal: true
# Just an example, to be replaced with an actual implementation
module MyModuleStatusConsequences
class ChangeActivity < MyModuleStatusConsequence
def call(my_module)
# Create new activity here
puts "State changed to #{my_module_status.name}} for #{my_module.name}"
end
end
end