class ApiDocs::Configuration # Where to find the folder with documentation files attr_accessor :docs_path # Controller that ApiDocs::DocsController inherits from attr_accessor :base_controller # Array of ignored attributes. Attributes that don't really change # the content like timestamps. attr_accessor :ignored_attributes # Remove doc files before running tests. False by default. attr_accessor :reload_docs_folder # Configuration defaults def initialize @docs_path = Rails.root.join('doc/api') @base_controller = 'ApplicationController' @ignored_attributes = %w(created_at updated_at) @reload_docs_folder = false end end