Update context.rb

fixes AR4 deprecation warning.