lots of renaming to _ names instead of camelCase

This commit is contained in:
Thomas Hille
2017-02-26 18:03:55 +01:00
parent f63b9eeb3c
commit 1eea3fab4c
3 changed files with 29 additions and 30 deletions

View File

@ -75,7 +75,7 @@ class Exercise < ActiveRecord::Base
"""
end
def getQuantiles(quantiles)
def get_quantiles(quantiles)
quantiles_str = "[" + quantiles.join(",") + "]"
result = self.class.connection.execute("""
SELECT unnest(PERCENTILE_CONT(ARRAY#{quantiles_str}) WITHIN GROUP (ORDER BY working_time))