mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +00:00
13 lines
243 B
Ruby
13 lines
243 B
Ruby
# frozen_string_literal: true
|
|
|
|
module RevisionCount
|
|
extend ActiveSupport::Concern
|
|
|
|
included do
|
|
after_update :increment_revision
|
|
end
|
|
|
|
def increment_revision
|
|
conference.update_column(:revision, conference.revision + 1)
|
|
end
|
|
end
|