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 ##