mirror of
https://github.com/valitydev/openapi-generator.git
synced 2024-11-08 19:33:55 +00:00
Initialize a default configuration object
This commit is contained in:
parent
7db7b146be
commit
41371bd901
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user