module SwaggerEngine class Engine < ::Rails::Engine isolate_namespace SwaggerEngine initializer "swagger_engine.assets.precompile" do |app| app.config.assets.precompile += %w(print.css reset.css) end end class Configuration #[{ default: "swagger.json" }] attr_accessor :json_files end class << self attr_writer :configuration end module_function def configuration @configuration ||= Configuration.new end def configure yield(configuration) end end