Skip to content

Commit 209c0cf

Browse files
committed
Avoid circular reference for Ruby 2.2.0
Ruby 2.2 now prints a warning when it detects an argument defaulting to a variable/method. Renaming things to avoid this warning.
1 parent c9c1a76 commit 209c0cf

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)