Update context.rb

fixes deprecation warning in AR4