2018-05-07 16:47:29 -07:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
2017-01-04 22:27:46 -05:00
|
|
|
module RevisionCount
|
|
|
|
|
extend ActiveSupport::Concern
|
|
|
|
|
|
|
|
|
|
included do
|
|
|
|
|
after_update :increment_revision
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
def increment_revision
|
|
|
|
|
conference.update_column(:revision, conference.revision + 1)
|
|
|
|
|
end
|
|
|
|
|
end
|