Initialize a default configuration object

This commit is contained in:
xhh 2015-04-14 15:03:21 +08:00
parent 7db7b146be
commit 41371bd901

View File

@ -7,6 +7,8 @@ require 'logger'
module Swagger
@configuration = Configuration.new
class << self
attr_accessor :logger
@ -27,7 +29,6 @@ module Swagger
# end
#
def configure
self.configuration ||= Configuration.new
yield(configuration) if block_given?
# Configure logger. Default to use Rails