Commit e83e85ce authored by Andreas Brandl's avatar Andreas Brandl

Remove unnecessary safe guard.

parent 9ebbcb8f
...@@ -17,12 +17,6 @@ class UserInteractedProject < ActiveRecord::Base ...@@ -17,12 +17,6 @@ class UserInteractedProject < ActiveRecord::Base
# is not related to any project). # is not related to any project).
return unless event.project_id return unless event.project_id
# This is a precaution because the cache lookup
# will work just fine without an author.
#
# However, this should never happen (tm).
raise 'event#author not present unexpectedly' unless event.author
attributes = { attributes = {
project_id: event.project_id, project_id: event.project_id,
user_id: event.author_id user_id: event.author_id
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment