From c2839ec6c81683b3575dc6baae9cbd1ac97ce98a Mon Sep 17 00:00:00 2001 From: Tim Felgentreff Date: Mon, 20 Dec 2010 12:31:07 +0100 Subject: [PATCH] sql statement needs the explicit table name now --- app/models/report/sql_statement.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/models/report/sql_statement.rb b/app/models/report/sql_statement.rb index c51d99fa49..3aded2e7ef 100644 --- a/app/models/report/sql_statement.rb +++ b/app/models/report/sql_statement.rb @@ -27,11 +27,11 @@ class Report::SqlStatement attr_accessor :desc ## - # Generates new SqlStatement. The table name defaults to the NoFilter's table. + # Generates new SqlStatement. # # @param [String, #to_s] table Table name (or subselect) for from part. - def initialize(table = nil) - from(table || engine::Filter::NoFilter.table_name) + def initialize(table) + from table end ##