fazibear/opal-airbrake

View on GitHub
opal/airbrake.rb

Summary

Maintainability
A
0 mins
Test Coverage
require 'vendor/airbrake'

class Airbrake
  include Native

  def initialize(options)
    options[:projectId] ||= options.delete(:project_id)
    options[:projectKey] ||= options.delete(:project_key)
    super `new window.airbrakeJs.Client(#{options.to_n})`
  end
end