scinote-web/app/models/my_module_status_implications/read_only.rb
2020-07-21 16:00:09 +02:00

11 lines
292 B
Ruby

# frozen_string_literal: true
# Just an example, to be replaced with an actual implementation
module MyModuleStatusImplications
class ReadOnly < MyModuleStatusImplication
def call(my_module)
my_module.errors.add(:status_implication, 'Is read only')
false
end
end
end