mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-15 05:34:53 +08:00
16 lines
316 B
Ruby
16 lines
316 B
Ruby
|
# frozen_string_literal: true
|
||
|
|
||
|
module RepositoryValueWithReminders
|
||
|
extend ActiveSupport::Concern
|
||
|
|
||
|
included do
|
||
|
after_update :clear_hidden_repository_cell_reminders
|
||
|
|
||
|
private
|
||
|
|
||
|
def clear_hidden_repository_cell_reminders
|
||
|
repository_cell.hidden_repository_cell_reminders.delete_all
|
||
|
end
|
||
|
end
|
||
|
end
|