Skip to content

Commit

Permalink
set localhost IP to satisfy web console when testing in development
Browse files Browse the repository at this point in the history
  • Loading branch information
shifi committed May 22, 2015
1 parent 1685959 commit 92fc172
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/airbrake/rails3_tasks.rb
Expand Up @@ -114,6 +114,7 @@ def exception_class
protocol = (config.respond_to?(:force_ssl) && config.force_ssl) ? 'https' : 'http'

env = Rack::MockRequest.env_for("#{protocol}://www.example.com/verify")
env['REMOTE_ADDR'] = '127.0.0.1'

Rails.application.call(env)

Expand Down

0 comments on commit 92fc172

Please sign in to comment.