# File lib/couchdb_adapter/adapter.rb, line 103
      def initialize(repo_name, options = {})
        super
        
        # When giving a repository URI rather than a hash, the database name
        # is :path, with a leading slash.
        if options[:path] && options[:database].nil?
          options[:database] = db_name
        end
        
        @resource_naming_convention = NamingConventions::Resource::Underscored
        @uri = Addressable::URI.new(options.only(:scheme, :host, :path, :port))
      end