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.
def self.setup(options = {})
setup! unless setup?
Endpoint.set(options)
Endpoint.set(options) if options
end
def self.new(options = {})
setup(options) if options
setup(options)
super()
end