debian-mirror-gitlab/app/models/concerns/editable.rb
2018-03-17 18:26:18 +05:30

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