gitlab-org--gitlab-foss/app/models/concerns/editable.rb

14 lines
216 B
Ruby
Raw Normal View History

# frozen_string_literal: true
module Editable
extend ActiveSupport::Concern
2017-08-24 12:26:24 -04:00
def edited?
last_edited_at.present? && last_edited_at != created_at
end
def last_edited_by
super || User.ghost
end
end