scinote-web/app/models/my_module_status_implications/read_only.rb

11 lines
280 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')
end
end
end