diff options
author | Yorick Peterse <yorickpeterse@gmail.com> | 2016-11-24 13:25:23 +0300 |
---|---|---|
committer | Yorick Peterse <yorickpeterse@gmail.com> | 2016-11-25 15:45:34 +0300 |
commit | 0ba03d7eb1d80e019b9b8266f0e14356d32e7d69 (patch) | |
tree | 32d52b34bc6bf447d45bc8c19bd1e7bd4fb422a1 /app/models/event.rb | |
parent | 5371da341e9d7768ebab8e159b3e2cc8fad1d827 (diff) |
Removed data-user-is view code
With events no longer being cached this is no longer needed.
Diffstat (limited to 'app/models/event.rb')
-rw-r--r-- | app/models/event.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/models/event.rb b/app/models/event.rb index 216dba46e74..2662f170765 100644 --- a/app/models/event.rb +++ b/app/models/event.rb @@ -347,6 +347,10 @@ class Event < ActiveRecord::Base update_all(last_activity_at: created_at) end + def authored_by?(user) + user ? author_id == user.id : false + end + private def recent_update? |