Update gateway.rb