Sha256: 444f0cb37d97d3c548bf0489c70616968f0c3e4f712f098781bce2c73141b580

Contents?: true

Size: 616 Bytes

Versions: 12

Compression:

Stored size: 616 Bytes

Contents

class WardenController < ActionController::Base
  protect_from_forgery

  def index
    render json: {}
  end

  def create
    User.new({
      :email => "testtest@test.test",
      :name => "Warden User",
      :first_name => "Warden",
      :last_name => "User"
    }).save unless User.where(:email => "testtest@test.test").size > 0
    render json: {}
  end

  def unhandled
    warden = request.env['warden']
    warden.authenticate!
    generate_unhandled_error
  end

  def handled
    warden = request.env['warden']
    warden.authenticate!
    Bugsnag.notify("handled string")
    render json: {}
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
bugsnag-6.15.0 features/fixtures/rails3/app/app/controllers/warden_controller.rb
bugsnag-6.14.0 features/fixtures/rails3/app/app/controllers/warden_controller.rb
bugsnag-6.13.1 features/fixtures/rails3/app/app/controllers/warden_controller.rb
bugsnag-6.13.0 features/fixtures/rails3/app/app/controllers/warden_controller.rb
bugsnag-6.12.2 features/fixtures/rails3/app/app/controllers/warden_controller.rb
bugsnag-6.12.1 features/fixtures/rails3/app/app/controllers/warden_controller.rb
bugsnag-6.12.0 features/fixtures/rails3/app/app/controllers/warden_controller.rb
bugsnag-6.11.1 features/fixtures/rails3/app/app/controllers/warden_controller.rb
bugsnag-6.11.0 features/fixtures/rails3/app/app/controllers/warden_controller.rb
bugsnag-6.10.0 features/fixtures/rails3/app/app/controllers/warden_controller.rb
bugsnag-6.9.0 features/fixtures/rails3/app/app/controllers/warden_controller.rb
bugsnag-6.8.0 features/fixtures/rails3/app/app/controllers/warden_controller.rb