OpenProject is the leading open source project management software.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
openproject/lib/report/group_by/singleton_value.rb

13 lines
285 B

class Report::GroupBy
class SingletonValue < Base
dont_display!
put_sql_table_names "singleton_value" => false
select_fields "1 as singleton_value"
def define_group(sql)
sql.select "1 as singleton_value"
sql.group_by "singleton_value"
end
end
end