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

12 lines
185 B
Ruby
Raw Normal View History

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