Update apply.rb