mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-12 04:06:53 +08:00
12 lines
323 B
Ruby
12 lines
323 B
Ruby
# frozen_string_literal: true
|
|
|
|
# Just an example, to be replaced with an actual implementation
|
|
module MyModuleStatusConsequences
|
|
class Completion < MyModuleStatusConsequence
|
|
def forward(my_module)
|
|
my_module.state = 'completed'
|
|
my_module.completed_on = DateTime.now
|
|
my_module.save!
|
|
end
|
|
end
|
|
end
|