module RSpec::Rails::Mocks::ActiveRecordStubExtensions

def connection

def connection
  raise RSpec::Rails::IllegalDataAccessException.new("stubbed models are not allowed to access the database")
end