Sha256: 97a54f147e563c98359ed288e4a7a3501b8d608e6b47834a3ebb6b5a767af418

Contents?: true

Size: 841 Bytes

Versions: 19

Compression:

Stored size: 841 Bytes

Contents

class ClearanceController < Clearance::BaseController
  protect_from_forgery
  def create
    user = User.find_by(:email => "testtest@test.test")
    User.new({
      :email => "testtest@test.test",
      :name => "Clearance User",
      :first_name => "Clearance",
      :last_name => "User",
      :password => "Password"
    }).save if user.nil?
    render json: {}
  end

  def unhandled
    user = User.find_by(:email => "testtest@test.test")
    unless user.nil?
      @current_user = user
      cookies['remember_token'] = user.remember_token
    end
    generate_unhandled_error
  end

  def handled
    user = User.find_by(:email => "testtest@test.test")
    unless user.nil?
      @current_user = user
      cookies['remember_token'] = user.remember_token
    end
    Bugsnag.notify("handled string")
    render json: {}
  end
end

Version data entries

19 entries across 12 versions & 1 rubygems

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