Update adaptor.rb

based on sdfamond's fix