0
0
Fork 0

Catching more exceptions that slipped through, removing AR logging from

production as it's very verbose and not very useful
This commit is contained in:
Eugen Rochko 2016-10-05 13:26:44 +02:00
parent b078885414
commit fe77921e47
7 changed files with 29 additions and 6 deletions

View file

@ -8,13 +8,16 @@ class StreamEntriesController < ApplicationController
def show
@type = @stream_entry.activity_type.downcase
if @stream_entry.activity_type == 'Status'
@ancestors = @stream_entry.activity.ancestors
@descendants = @stream_entry.activity.descendants
end
respond_to do |format|
format.html
format.html do
return gone if @stream_entry.activity.nil?
if @stream_entry.activity_type == 'Status'
@ancestors = @stream_entry.activity.ancestors
@descendants = @stream_entry.activity.descendants
end
end
format.atom
end
end