lib/softwear/error_catcher.rb in softwear-lib-3.3.5 vs lib/softwear/error_catcher.rb in softwear-lib-3.3.6

- old
+ new

@@ -24,10 +24,11 @@ @error = error @additional_info = gather_additional_info begin + Rails.logger.error "WTF THIS NO WORKY! THIS IS THE LAYOUT: #{layout_for_error}" respond_to do |format| format.html { render 'softwear/errors/internal_server_error', layout: layout_for_error, status: 500 } format.js { render 'softwear/errors/internal_server_error', layout: layout_for_error, status: 500 } format.json { render json: '{}', status: 500 } end @@ -65,17 +66,9 @@ .join("|||") end def layout_for_error user = try(:current_user) || @current_user - partner = Figaro.env.partner_namespace - - if user - "application" - elsif !partner.nil? && request.url.include?(partner) - "partners/application" - else - "no_overlay" - end + user ? "application" : "no_overlay" end end end