2017-05-18 08:24:34 -04:00
|
|
|
module Editable
|
|
|
|
extend ActiveSupport::Concern
|
|
|
|
|
2017-08-24 12:26:24 -04:00
|
|
|
def edited?
|
2017-05-18 08:24:34 -04:00
|
|
|
last_edited_at.present? && last_edited_at != created_at
|
|
|
|
end
|
2017-07-17 10:38:43 -04:00
|
|
|
|
|
|
|
def last_edited_by
|
|
|
|
super || User.ghost
|
|
|
|
end
|
2017-05-18 08:24:34 -04:00
|
|
|
end
|