module ApiRegulator class Configuration attr_accessor :base_controller, :api_base_url, :app_name, :docs_path, :rdme_api_id, :servers def initialize # Set default values @base_controller = "ApplicationController" @api_base_url = "api/v1" @app_name = "API Documentation" @docs_path = "openapi.json" @servers = [] end def base_controller_klass ApiRegulator.configuration.base_controller.constantize end end end