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

12 lines
292 B
Ruby
Raw Normal View History

# 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