lib/open_api/config.rb in zero-rails_openapi-1.1.1 vs lib/open_api/config.rb in zero-rails_openapi-1.2.0

- old
+ new

@@ -5,11 +5,11 @@ end DEFAULT_CONFIG = { is_options: %w[email phone password uuid uri url time date], dft_file_format: 'binary' - } + }.freeze module ClassMethods def config @config ||= ActiveSupport::InheritableOptions.new(DEFAULT_CONFIG) end @@ -17,18 +17,18 @@ def configure(&block) config.instance_eval &block end ### config options - # register_apis = { - # version: { + # register_docs = { + # doc_name: { # :file_output_path, :root_controller # info: {} # }} # is_options = %w[] def apis - @apis ||= @config.register_apis + @apis ||= @config.register_docs end end end end