mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-16 22:25:30 +08:00
11 lines
292 B
Ruby
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
|