debian-mirror-gitlab/app/models/concerns/editable.rb
2018-11-20 20:47:30 +05:30

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