Update active_record_adapter.rb

As @dim suggested in #889
Please refer to that issue for more information. Note that I did't came up with this idea, @dim did :smile:
Merge remote-tracking branch 'davidakachaos/patch-1'