paging done, needs some additional refactoring

This commit is contained in:
Edin Dazdarevic
2015-02-15 14:21:50 +01:00
parent ba22ea8bd7
commit f675f8b024
11 changed files with 136 additions and 32 deletions

View File

@@ -3,6 +3,10 @@ def get_querystring_hash()
Rack::Utils.parse_nested_query(request.query_string)
end
def add_total_count_header(total)
response.headers['X-Total-Count'] = total
end
# converts list of parameters to array of integers
def mass_to_i(*id_strings)
id_strings.map(&:to_i)