class AirbrakeSymbolicate::Airbrake

Public Class Methods

account=(a) click to toggle source
# File lib/airbrake_symbolicate.rb, line 68
def account=(a)
  self.site = "https://#{a}.airbrake.io/" if a
  self.format = ActiveResource::Formats::XmlFormat
end
append_auth_token_to_params(*arguments) click to toggle source
# File lib/airbrake_symbolicate.rb, line 78
def append_auth_token_to_params(*arguments)
  raise RuntimeError.new("Airbrake.auth_token must be set!") if !auth_token

  opts = arguments.last.is_a?(Hash) ? arguments.pop : {}
  opts = opts.has_key?(:params) ? opts : opts.merge(:params => {})
  opts[:params] = opts[:params].merge(:auth_token => auth_token)
  arguments << opts
  arguments
end
find(*arguments) click to toggle source
Calls superclass method
# File lib/airbrake_symbolicate.rb, line 73
def find(*arguments)
  arguments = append_auth_token_to_params(*arguments)
  super(*arguments)
end