gitlab-org--gitlab-foss/app/models/concerns/editable.rb
2017-08-29 11:14:41 +03:00

11 lines
185 B
Ruby

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