gitlab-org--gitlab-foss/app/models/concerns/editable.rb
2018-08-07 00:37:36 -07:00

13 lines
216 B
Ruby

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