always call setup
This commit is contained in:
parent
c2e06293a0
commit
73eea4d51b
|
@ -41,11 +41,11 @@ module Travis::Api
|
||||||
# the environment, so no biggy.
|
# the environment, so no biggy.
|
||||||
def self.setup(options = {})
|
def self.setup(options = {})
|
||||||
setup! unless setup?
|
setup! unless setup?
|
||||||
Endpoint.set(options)
|
Endpoint.set(options) if options
|
||||||
end
|
end
|
||||||
|
|
||||||
def self.new(options = {})
|
def self.new(options = {})
|
||||||
setup(options) if options
|
setup(options)
|
||||||
super()
|
super()
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user