mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-14 12:14:03 +00:00
11 lines
212 B
Ruby
11 lines
212 B
Ruby
module RevisionCount
|
|
extend ActiveSupport::Concern
|
|
|
|
included do
|
|
after_update :increment_revision
|
|
end
|
|
|
|
def increment_revision
|
|
conference.update_column(:revision, conference.revision + 1)
|
|
end
|
|
end
|