gitlab-org--gitlab-foss/app/models/concerns/editable.rb
2017-07-19 11:35:17 +02:00

11 lines
188 B
Ruby

module Editable
extend ActiveSupport::Concern
def is_edited?
last_edited_at.present? && last_edited_at != created_at
end
def last_edited_by
super || User.ghost
end
end