module RSpec::Rails::Mocks::ActiveRecordInstanceMethods

def [](key)

Transforms the key to a method and calls it.
def [](key)
  send(key)
end