From 8d767927e9775dfbd8d58e2bd0eb81e56f976011 Mon Sep 17 00:00:00 2001 From: Xavier Shay Date: Thu, 19 May 2011 21:58:42 -0700 Subject: [PATCH] Remove #compress_lines call - it isn't required and isn't provided as a core extension anymore by DataMapper as of 1.1. --- lib/database_cleaner/data_mapper/truncation.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/database_cleaner/data_mapper/truncation.rb b/lib/database_cleaner/data_mapper/truncation.rb index dc8da51..1896c09 100644 --- a/lib/database_cleaner/data_mapper/truncation.rb +++ b/lib/database_cleaner/data_mapper/truncation.rb @@ -42,7 +42,7 @@ module DataMapper # taken from http://github.com/godfat/dm-mapping/tree/master def storage_names(repository = :default) # activerecord-2.1.0/lib/active_record/connection_adapters/sqlite_adapter.rb: 177 - sql = <<-SQL.compress_lines + sql = <<-SQL SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' @@ -68,7 +68,7 @@ module DataMapper # taken from http://github.com/godfat/dm-mapping/tree/master def storage_names(repository = :default) # activerecord-2.1.0/lib/active_record/connection_adapters/sqlite_adapter.rb: 177 - sql = <<-SQL.compress_lines + sql = <<-SQL SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' @@ -99,7 +99,7 @@ module DataMapper # taken from http://github.com/godfat/dm-mapping/tree/master def storage_names(repository = :default) - sql = <<-SQL.compress_lines + sql = <<-SQL SELECT table_name FROM "information_schema"."tables" WHERE table_schema = current_schema() and table_type = 'BASE TABLE' SQL