Sha256: 58007f24c2c10e9e8784f7412bc46d348444c6eac951063ce04d7087b362b2e9
Contents?: true
Size: 792 Bytes
Versions: 17
Compression:
Stored size: 792 Bytes
Contents
module WatCatcher class BugsnagController < ActionController::Base skip_before_filter :verify_authenticity_token, only: :get include WatCatcher::CatcherOfWats def show request.params[:wat] = HashWithIndifferentAccess.new request.params[:wat][:backtrace] = stacktrace request.params[:wat][:message] = params[:message] request.params[:wat][:page_url] = params[:url] request.params[:wat][:language] = 'javascript' begin user = JSON.parse(params[:user]) rescue JSON::ParserError;end ensure @report = Report.new(nil, user: user, request: request) response.headers['Content-Type'] = "image/png; charset=utf-8" head :ok end def stacktrace params[:stacktrace].split("\n")[1..-1] end end end
Version data entries
17 entries across 17 versions & 1 rubygems