Welcome to mirror list, hosted at ThFree Co, Russian Federation.

editable.rb « concerns « models « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: c0a3099f6761f44fa529c5e1b858d7ab8dad64c0 (plain)
1
2
3
4
5
6
7
8
9
10
11
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