Skip to content

Commit 1af674d

Browse files
committed
Merge pull request #134 from pat/patch-1
Avoid circular reference for Ruby 2.2.0
2 parents c9c1a76 + 209c0cf commit 1af674d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/intercom/errors.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ module Intercom
33
# Base class exception from which all public Intercom exceptions will be derived
44
class IntercomError < StandardError
55
attr_reader :http_code, :application_error_code
6-
def initialize(message, http_code = nil, application_error_code = application_error_code)
6+
def initialize(message, http_code = nil, error_code = application_error_code)
77
@http_code = http_code
8-
@application_error_code = application_error_code
8+
@application_error_code = error_code
99
super(message)
1010
end
1111
end

0 commit comments

Comments
 (0)