adapter (DataMapper::Repository)

    # File lib/dm-core/repository.rb, line 62
        def adapter
          # Make adapter instantiation lazy so we can defer repository setup until it's actually
          # needed. Do not remove this code.
          @adapter ||=
            begin
              raise RepositoryNotSetupError, "Adapter not set: #{@name}. Did you forget to setup?" \
                unless self.class.adapters.key?(@name)

              self.class.adapters[@name]
            end
        end