always call setup

This commit is contained in:
Konstantin Haase 2012-10-22 23:53:41 +02:00
parent c2e06293a0
commit 73eea4d51b

View File

@ -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